[PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7

Chen Gang gang.chen at asianux.com
Thu Mar 14 05:01:39 EDT 2013


  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 at 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



More information about the linux-arm-kernel mailing list