Skip to content

Commit

Permalink
thermal: mtk_thermal: make device_reset optional
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Fabien Parent authored and Daniel Lezcano committed Oct 27, 2020
1 parent c707f97 commit 703456b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/mtk_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 703456b

Please sign in to comment.