public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: gang.chen@asianux•com (Chen Gang)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7
Date: Thu, 14 Mar 2013 17:01:39 +0800	[thread overview]
Message-ID: <514191F3.7030203@asianux.com> (raw)
In-Reply-To: <513C0280.7040004@asianux.com>


  is there any member to help checking and applying it ?

  this issue is repeated again by randconfig make, today.


? 2013?03?10? 11:48, Chen Gang ??:
> 
>   prate is not defined, will cause compiling issue.
>   need use parent_rate instead of prate.
> 
> Signed-off-by: Chen Gang <gang.chen@asianux•com>
> ---
>  drivers/clk/clk-vt8500.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
> index b5538bb..09c6331 100644
> --- a/drivers/clk/clk-vt8500.c
> +++ b/drivers/clk/clk-vt8500.c
> @@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
>  	divisor =  parent_rate / rate;
>  
>  	/* If prate / rate would be decimal, incr the divisor */
> -	if (rate * divisor < *prate)
> +	if (rate * divisor < parent_rate)
>  		divisor++;
>  
>  	if (divisor == cdev->div_mask + 1)
> 


-- 
Chen Gang

Asianux Corporation

  reply	other threads:[~2013-03-14  9:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-10  3:48 [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7 Chen Gang
2013-03-14  9:01 ` Chen Gang [this message]
2013-03-14 17:48   ` Tony Prisk
2013-03-15  0:56     ` Chen Gang

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=514191F3.7030203@asianux.com \
    --to=gang.chen@asianux$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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