diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-04-21 05:34:10 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2015-05-09 01:36:57 -0400 |
commit | 0d0a2bf6ed4b489eef9a84450b3d90e6e001ce63 (patch) | |
tree | f15b67dfae31044e1d0121e60abb4c58eacb5ee6 /drivers/thermal/rockchip_thermal.c | |
parent | d81861138898ce8d83bc78f0d558ac3984225e2b (diff) |
thermal: rockchip: fix an error code
There is a copy and paste bug, "->clk" vs "->pclk", so we return the
wrong error code here.
Fixes: cbac8f639437 ('thermal: rockchip: add driver for thermal')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/rockchip_thermal.c')
-rw-r--r-- | drivers/thermal/rockchip_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index 3aa46ac7cdbc..cd8f5f93b42c 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c | |||
@@ -529,7 +529,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev) | |||
529 | 529 | ||
530 | thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); | 530 | thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); |
531 | if (IS_ERR(thermal->pclk)) { | 531 | if (IS_ERR(thermal->pclk)) { |
532 | error = PTR_ERR(thermal->clk); | 532 | error = PTR_ERR(thermal->pclk); |
533 | dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n", | 533 | dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n", |
534 | error); | 534 | error); |
535 | return error; | 535 | return error; |