Skip to content

Commit

Permalink
thermal: rockchip: fix an error code
Browse files Browse the repository at this point in the history
There is a copy and paste bug, "->clk" vs "->pclk", so we return the
wrong error code here.

Fixes: cbac8f6 ('thermal: rockchip: add driver for thermal')
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Caesar Wang <[email protected]>
Reviewed-by: Doug Anderson <[email protected]>
Tested-by: Caesar Wang <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
  • Loading branch information
Dan Carpenter authored and zhang-rui committed May 9, 2015
1 parent d818611 commit 0d0a2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/rockchip_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,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;
Expand Down

0 comments on commit 0d0a2bf

Please sign in to comment.