From 52a5fc5a798839a50bcc5734b4c9013b61cee903 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Wed, 17 Jun 2015 15:23:00 -0700 Subject: [PATCH] thermal: rockchip: fix an error code 3.19.8-ckt2 -stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter commit 0d0a2bf6ed4b489eef9a84450b3d90e6e001ce63 upstream. There is a copy and paste bug, "->clk" vs "->pclk", so we return the wrong error code here. Change-Id: I3ef649ce940016fd9214ea924b243a07bdc58248 Fixes: cbac8f639437 ('thermal: rockchip: add driver for thermal') Signed-off-by: Dan Carpenter Reviewed-by: Caesar Wang Reviewed-by: Doug Anderson Tested-by: Caesar Wang Signed-off-by: Zhang Rui Signed-off-by: Kamal Mostafa Signed-off-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index 6c63571f005e..202bfe3db12c 100755 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -920,7 +920,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev) thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); if (IS_ERR(thermal->pclk)) { - error = PTR_ERR(thermal->clk); + error = PTR_ERR(thermal->pclk); dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n", error); return error; -- 2.34.1