提交 6760f3f7 编写于 作者: L Louis Yu 提交者: Zhang Rui

thermal: mediatek: minor mtk_thermal.c cleanups

Move independent thermal module reset in the beginning.
Signed-off-by: NLouis Yu <louis.yu@mediatek.com>
Reviewed-by: NDawei Chien <dawei.chien@mediatek.com>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册