linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Caesar Wang <wxt@rock-chips.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
	Zhang Rui <rui.zhang@intel.com>,
	Caesar Wang <caesar.wang@rock-chips.com>
Cc: Eduardo Valentin <edubezval@gmail.com>,
	Heiko Stuebner <heiko@sntech.de>,
	linux-pm@vger.kernel.org, linux-rockchip@lists.infradead.org,
	kernel-janitors@vger.kernel.org
Subject: Re: [patch] thermal: rockchip: fix an error code
Date: Wed, 22 Apr 2015 11:07:44 +0800	[thread overview]
Message-ID: <55371080.4090307@rock-chips.com> (raw)
In-Reply-To: <20150421093410.GE12098@mwanda>



在 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.
***************************************************************************************



  reply	other threads:[~2015-04-22  3:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21  9:34 [patch] thermal: rockchip: fix an error code Dan Carpenter
2015-04-22  3:07 ` Caesar Wang [this message]
     [not found]   ` <55371080.4090307-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-04-28  0:35     ` Caesar Wang
2015-04-27 17:50 ` Doug Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55371080.4090307@rock-chips.com \
    --to=wxt@rock-chips.com \
    --cc=caesar.wang@rock-chips.com \
    --cc=dan.carpenter@oracle.com \
    --cc=edubezval@gmail.com \
    --cc=heiko@sntech.de \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).