[PATCH 22/33] ARM: imx: add common clock support for pllv3

Shawn Guo shawn.guo at linaro.org
Fri Apr 27 02:21:22 EDT 2012


On Wed, Apr 25, 2012 at 05:28:12PM +0200, Sascha Hauer wrote:
> +static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate,
> +				 unsigned long *prate)
> +{
> +	unsigned long parent_rate = __clk_get_rate(__clk_get_parent(hw->clk));

With patch 81536e0 (clk: always pass parent_rate into .round_rate) in
there, *prate is just the parent_rate.  That said, we do not need to
call __clk_get_rate and __clk_get_parent anywhere in this file.

> +
> +	return (rate >= parent_rate * 22) ? parent_rate * 22 :
> +					    parent_rate * 20;
> +}

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list