Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal: mediatek: minor mtk_thermal.c cleanups

Move independent thermal module reset in the beginning.

Signed-off-by: Louis Yu <louis.yu@mediatek.com>
Reviewed-by: Dawei Chien <dawei.chien@mediatek.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Louis Yu and committed by
Zhang Rui
6760f3f7 0a068993

+4 -4
+4 -4
drivers/thermal/mtk_thermal.c
··· 712 712 return -EINVAL; 713 713 } 714 714 715 + ret = device_reset(&pdev->dev); 716 + if (ret) 717 + return ret; 718 + 715 719 ret = clk_prepare_enable(mt->clk_auxadc); 716 720 if (ret) { 717 721 dev_err(&pdev->dev, "Can't enable auxadc clk: %d\n", ret); 718 722 return ret; 719 723 } 720 - 721 - ret = device_reset(&pdev->dev); 722 - if (ret) 723 - goto err_disable_clk_auxadc; 724 724 725 725 ret = clk_prepare_enable(mt->clk_peri_therm); 726 726 if (ret) {