]> git.baikalelectronics.ru Git - kernel.git/commit
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:07:08 +0000 (14:07 +0200)
commit66e0726c5e959e16435cfd86c05370a5410a54c1
treee4bdeb819075440e82e81ef4b53c4dd1c5a2c514
parenta4e501f08b0d0be1df2fd31a55beb9e5362b0777
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: 65b572767bcb ("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