Commit 6760f3f7 authored by Louis Yu's avatar Louis Yu Committed by Zhang Rui

thermal: mediatek: minor mtk_thermal.c cleanups

Move independent thermal module reset in the beginning.
Signed-off-by: default avatarLouis Yu <louis.yu@mediatek.com>
Reviewed-by: default avatarDawei Chien <dawei.chien@mediatek.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 0a068993
......@@ -712,16 +712,16 @@ static int mtk_thermal_probe(struct platform_device *pdev)
return -EINVAL;
}
ret = device_reset(&pdev->dev);
if (ret)
return ret;
ret = clk_prepare_enable(mt->clk_auxadc);
if (ret) {
dev_err(&pdev->dev, "Can't enable auxadc clk: %d\n", ret);
return ret;
}
ret = device_reset(&pdev->dev);
if (ret)
goto err_disable_clk_auxadc;
ret = clk_prepare_enable(mt->clk_peri_therm);
if (ret) {
dev_err(&pdev->dev, "Can't enable peri clk: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment