Skip to content

Commit 02d438f

Browse files
Dan Carpenterdlezcano
authored andcommitted
thermal/drivers/exynos: Fix an error code in exynos_tmu_probe()
This error path return success but it should propagate the negative error code from devm_clk_get(). Fixes: 6c24739 ("thermal: exynos: Add TMU support for Exynos7 SoC") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/20210810084413.GA23810@kili
1 parent 8f8d8b0 commit 02d438f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thermal/samsung/exynos_tmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,7 @@ static int exynos_tmu_probe(struct platform_device *pdev)
10731073
data->sclk = devm_clk_get(&pdev->dev, "tmu_sclk");
10741074
if (IS_ERR(data->sclk)) {
10751075
dev_err(&pdev->dev, "Failed to get sclk\n");
1076+
ret = PTR_ERR(data->sclk);
10761077
goto err_clk;
10771078
} else {
10781079
ret = clk_prepare_enable(data->sclk);

0 commit comments

Comments
 (0)