Commit 0d0a2bf6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Zhang Rui

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: cbac8f63 ('thermal: rockchip: add driver for thermal')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarCaesar Wang <wxt@rock-chips.com>
Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
Tested-by: default avatarCaesar Wang <wxt@rock-chips.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent d8186113
...@@ -529,7 +529,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev) ...@@ -529,7 +529,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev)
thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
if (IS_ERR(thermal->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", dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n",
error); error);
return error; return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment