Re: [PATCH 06/14] clkdev: add clkdev_create() helper

2015-04-07 Thread Stephen Boyd
On 04/07/15 05:43, Russell King - ARM Linux wrote: > On Mon, Apr 06, 2015 at 01:19:33PM -0700, Stephen Boyd wrote: >> On 04/03/15 10:12, Russell King wrote: >>> @@ -316,6 +329,29 @@ clkdev_alloc(struct clk *clk, const char *con_id, >>> const char *dev_fmt, ...) >>> } >>> EXPORT_SYMBOL(clkdev_all

Re: [PATCH 06/14] clkdev: add clkdev_create() helper

2015-04-07 Thread Russell King - ARM Linux
On Mon, Apr 06, 2015 at 01:19:33PM -0700, Stephen Boyd wrote: > On 04/03/15 10:12, Russell King wrote: > > @@ -316,6 +329,29 @@ clkdev_alloc(struct clk *clk, const char *con_id, > > const char *dev_fmt, ...) > > } > > EXPORT_SYMBOL(clkdev_alloc); > > > > +/** > > + * clkdev_create - allocate a

Re: [PATCH 06/14] clkdev: add clkdev_create() helper

2015-04-06 Thread Stephen Boyd
On 04/03/15 10:12, Russell King wrote: > @@ -316,6 +329,29 @@ clkdev_alloc(struct clk *clk, const char *con_id, const > char *dev_fmt, ...) > } > EXPORT_SYMBOL(clkdev_alloc); > > +/** > + * clkdev_create - allocate and add a clkdev lookup structure > + * @clk: struct clk to associate with all

[PATCH 06/14] clkdev: add clkdev_create() helper

2015-04-03 Thread Russell King
Add a helper to allocate and add a clk_lookup structure. This can not only be used in several places in clkdev.c to simplify the code, but more importantly, can be used by callers of the clkdev code to simplify their clkdev creation and registration. Signed-off-by: Russell King --- drivers/clk/