Commit 703456ba authored by Fabien Parent's avatar Fabien Parent Committed by Daniel Lezcano

thermal: mtk_thermal: make device_reset optional

MT8516 does not support thermal reset. Use device_reset_optional
instead of device_reset.
Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201021164231.3029956-3-fparent@baylibre.com
parent c707f973
...@@ -1052,7 +1052,7 @@ static int mtk_thermal_probe(struct platform_device *pdev) ...@@ -1052,7 +1052,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
ret = device_reset(&pdev->dev); ret = device_reset_optional(&pdev->dev);
if (ret) if (ret)
return ret; return 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