From: Fabien Parent Date: Wed, 21 Oct 2020 16:42:31 +0000 (+0200) Subject: thermal: mtk_thermal: make device_reset optional X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=703456ba76e9449b5ade6597c04a90ee3421cd94;p=linux.git 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 Reviewed-by: Matthias Brugger Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20201021164231.3029956-3-fparent@baylibre.com --- diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index 0bd7aa564bc25..149c6d7fd5a07 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;