thermal: mtk_thermal: make device_reset optional
authorFabien Parent <fparent@baylibre.com>
Wed, 21 Oct 2020 16:42:31 +0000 (18:42 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 27 Oct 2020 10:19:18 +0000 (11:19 +0100)
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
drivers/thermal/mtk_thermal.c

index 0bd7aa5..149c6d7 100644 (file)
@@ -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;