diff options
author | Fabien Parent <fparent@baylibre.com> | 2020-10-21 18:42:31 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-10-27 11:19:18 +0100 |
commit | 703456ba76e9449b5ade6597c04a90ee3421cd94 (patch) | |
tree | a0972ace346dd35820d72f871b8497951bdc2ddd /drivers/thermal | |
parent | dt-bindings: thermal: mediatek: add documentation for MT8516 SoC (diff) | |
download | linux-703456ba76e9449b5ade6597c04a90ee3421cd94.tar.xz linux-703456ba76e9449b5ade6597c04a90ee3421cd94.zip |
thermal: mtk_thermal: make device_reset optional
MT8516 does not support thermal reset. Use device_reset_optional
instead of device_reset.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201021164231.3029956-3-fparent@baylibre.com
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/mtk_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index 0bd7aa564bc2..149c6d7fd5a0 100644 --- a/drivers/thermal/mtk_thermal.c +++ b/drivers/thermal/mtk_thermal.c @@ -1052,7 +1052,7 @@ static int mtk_thermal_probe(struct platform_device *pdev) return -EINVAL; } - ret = device_reset(&pdev->dev); + ret = device_reset_optional(&pdev->dev); if (ret) return ret; |