thermal/drivers/exynos: Fix an error code in exynos_tmu_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Aug 2021 08:44:13 +0000 (11:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Sep 2021 12:08:57 +0000 (14:08 +0200)
commit375e779ec32a87edeb6bb26582c1c9a1f59876f9
tree49efec2cde2645a52c824c0a7d783e0fab591fe4
parent38ab04186fb3f3b50f33e5cfde38066c5227e89d
thermal/drivers/exynos: Fix an error code in exynos_tmu_probe()

commit 02d438f62c05f0d055ceeedf12a2f8796b258c08 upstream.

This error path return success but it should propagate the negative
error code from devm_clk_get().

Fixes: 6c247393cfdd ("thermal: exynos: Add TMU support for Exynos7 SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210810084413.GA23810@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/samsung/exynos_tmu.c