[PATCH V4] clk: add a fixed factor clock

Viresh Kumar viresh.kumar at st.com
Sun May 6 23:41:53 EDT 2012


On 5/7/2012 7:12 AM, Mike Turquette wrote:
> I've applied the below fix in my local branch.  Let me know if you have
> issue with it before I send out my pull request to Arnd.
> 
> Thanks,
> Mike
> 
> 
> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
> index 0e8782b..1f2da01 100644
> --- a/drivers/clk/clk-fixed-factor.c
> +++ b/drivers/clk/clk-fixed-factor.c
> @@ -88,10 +88,8 @@ struct clk *clk_register_fixed_factor(struct device *dev, const char *name,
>  
>  	clk = clk_register(dev, &fix->hw);
>  
> -	if (clk)
> -		return clk;
> +	if (IS_ERR(clk))
> +		kfree(fix);
>  
> -	kfree(fix);
> -
> -	return NULL;
> +	return clk;
>  }

No problems. Please send it to Arnd ASAP.

--
viresh



More information about the linux-arm-kernel mailing list