* [patch] thermal: rockchip: fix an error code
@ 2015-04-21 9:34 Dan Carpenter
2015-04-22 3:07 ` Caesar Wang
2015-04-27 17:50 ` Doug Anderson
0 siblings, 2 replies; 4+ messages in thread
From: Dan Carpenter @ 2015-04-21 9:34 UTC (permalink / raw)
To: Zhang Rui, Caesar Wang
Cc: Eduardo Valentin, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA, Heiko Stuebner,
linux-pm-u79uwXL29TY76Z2rM5mHXA
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-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index 3aa46ac..cd8f5f93 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)
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;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [patch] thermal: rockchip: fix an error code
2015-04-21 9:34 [patch] thermal: rockchip: fix an error code Dan Carpenter
@ 2015-04-22 3:07 ` Caesar Wang
[not found] ` <55371080.4090307-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-04-27 17:50 ` Doug Anderson
1 sibling, 1 reply; 4+ messages in thread
From: Caesar Wang @ 2015-04-22 3:07 UTC (permalink / raw)
To: Dan Carpenter, Zhang Rui, Caesar Wang
Cc: Eduardo Valentin, Heiko Stuebner, linux-pm, linux-rockchip,
kernel-janitors
在 2015年04月21日 17:34, Dan Carpenter 写道:
> 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>
>
> diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
> index 3aa46ac..cd8f5f93 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)
>
> thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
> if (IS_ERR(thermal->pclk)) {
> - error = PTR_ERR(thermal->clk);
> + error = PTR_ERR(thermal->pclk);
Yeah, you are right.
Reviewed-by: Caesar Wang <wxt@rock-chips.com>
Thanks.
Caesar
> dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n",
> error);
> return error;
>
>
>
--
**************************************************************************************
王晓腾 Caesar Wang
Product R&D Dept.III
Fuzhou Rockchip Electronics Co.Ltd
Addr: NO.18 Building, A District, Fuzhou Software Park,Gulou District,Fuzhou, Fujian,China(Fuzhou Headquarters)
21F,Malata Building,Kejizhongyi Avenue,Nanshan District,Shenzhen (Shenzhen Office)
Tel:+86-591-83991906/07 - 8221
Mobile:+86 15059456742
E-mail : wxt@rock-chips.com
***************************************************************************************
***************************************************************************************
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may
contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the
information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material
in its entirety in any format. Thank you.
***************************************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] thermal: rockchip: fix an error code
2015-04-21 9:34 [patch] thermal: rockchip: fix an error code Dan Carpenter
2015-04-22 3:07 ` Caesar Wang
@ 2015-04-27 17:50 ` Doug Anderson
1 sibling, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2015-04-27 17:50 UTC (permalink / raw)
To: Dan Carpenter
Cc: Zhang Rui, Caesar Wang, Eduardo Valentin,
open list:ARM/Rockchip SoC..., kernel-janitors, Heiko Stuebner,
linux-pm@vger.kernel.org
Dan,
On Tue, Apr 21, 2015 at 2:34 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> 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>
>
> diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
> index 3aa46ac..cd8f5f93 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)
>
> 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;
Thanks! :) An obvious fix, but just in case it helps feel free to add:
Reviewed-by: Doug Anderson <dianders@chromium.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] thermal: rockchip: fix an error code
[not found] ` <55371080.4090307-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-04-28 0:35 ` Caesar Wang
0 siblings, 0 replies; 4+ messages in thread
From: Caesar Wang @ 2015-04-28 0:35 UTC (permalink / raw)
To: Dan Carpenter, Zhang Rui, Caesar Wang
Cc: Heiko Stuebner, linux-pm-u79uwXL29TY76Z2rM5mHXA,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA, Doug Anderson,
Eduardo Valentin, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Dan,
在 2015年04月22日 11:07, Caesar Wang 写道:
>
>
> 在 2015年04月21日 17:34, Dan Carpenter 写道:
>> 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>
>>
>> diff --git a/drivers/thermal/rockchip_thermal.c
>> b/drivers/thermal/rockchip_thermal.c
>> index 3aa46ac..cd8f5f93 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)
>> thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
>> if (IS_ERR(thermal->pclk)) {
>> - error = PTR_ERR(thermal->clk);
>> + error = PTR_ERR(thermal->pclk);
> Yeah, you are right.
> Reviewed-by: Caesar Wang <wxt@rock-chips.com>
>
Tested-by: Caesar Wang <wxt@rock-chips.com>
> Thanks.
>
> Caesar
>> dev_err(&pdev->dev, "failed to get apb_pclk clock: %d\n",
>> error);
>> return error;
>>
>>
>>
>
--
**************************************************************************************
王晓腾 Caesar Wang
Product R&D Dept.III
Fuzhou Rockchip Electronics Co.Ltd
Addr: NO.18 Building, A District, Fuzhou Software Park,Gulou District,Fuzhou, Fujian,China(Fuzhou Headquarters)
21F,Malata Building,Kejizhongyi Avenue,Nanshan District,Shenzhen (Shenzhen Office)
Tel:+86-591-83991906/07 - 8221
Mobile:+86 15059456742
E-mail : wxt@rock-chips.com
***************************************************************************************
***************************************************************************************
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may
contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the
information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material
in its entirety in any format. Thank you.
***************************************************************************************
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-28 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 9:34 [patch] thermal: rockchip: fix an error code Dan Carpenter
2015-04-22 3:07 ` Caesar Wang
[not found] ` <55371080.4090307-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-04-28 0:35 ` Caesar Wang
2015-04-27 17:50 ` Doug Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).