[PATCH] Consolidate clks_register() and similar

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 11 12:28:25 EST 2010


On Mon, Jan 11, 2010 at 12:26:12PM -0500, H Hartley Sweeten wrote:
> On Sunday, January 10, 2010 10:28 AM, Russell King wrote:
> > diff --git a/arch/arm/include/asm/clkdev.h b/arch/arm/include/asm/clkdev.h
> > index b6ec7c6..7a0690d 100644
> > --- a/arch/arm/include/asm/clkdev.h
> > +++ b/arch/arm/include/asm/clkdev.h
> > @@ -27,4 +27,7 @@ struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
> >  void clkdev_add(struct clk_lookup *cl);
> >  void clkdev_drop(struct clk_lookup *cl);
> >  
> > +void clkdev_add_table(struct clk_lookup *, size_t);
> > +int clk_add_alias(const char *, const char *, char *, struct device *);
> 
> clk_add_alias does not seem to be related to this patch.

True, but it might as well get cleaned up along with the rest of this.
For some reason, the prototype was never moved there.

> > @@ -474,8 +473,7 @@ static int __init ep93xx_clock_init(void)
> >  		clk_f.rate / 1000000, clk_h.rate / 1000000,
> >  		clk_p.rate / 1000000);
> >  
> > -	for (i = 0; i < ARRAY_SIZE(clocks); i++)
> > -		clkdev_add(&clocks[i]);
> > +	clkdev_add_table(clocks, ARRAY_SIZE(clocks));
> >  	return 0;
> >  }
> >  arch_initcall(ep93xx_clock_init);
> 
> For ep93xx.
> 
> Acked-by: H Hartley Sweeten <hsweeten at visionengravers.com>

Thanks.



More information about the linux-arm-kernel mailing list