[PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device
Kevin Hao
haokexin at gmail.com
Fri Oct 17 09:55:52 AEDT 2014
On Thu, Oct 16, 2014 at 11:55:23PM +0200, Scott Wood wrote:
> On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote:
> > diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c
> > index e56b89a792ed..7677cfecb787 100644
> > --- a/arch/powerpc/platforms/85xx/corenet_generic.c
> > +++ b/arch/powerpc/platforms/85xx/corenet_generic.c
> > @@ -16,6 +16,7 @@
> > #include <linux/kdev_t.h>
> > #include <linux/delay.h>
> > #include <linux/interrupt.h>
> > +#include <linux/clk-provider.h>
> >
> > #include <asm/time.h>
> > #include <asm/machdep.h>
> > @@ -188,11 +189,17 @@ static int __init corenet_generic_probe(void)
> > return 0;
> > }
> >
> > +static void __init corenet_gen_init(void)
> > +{
> > + of_clk_init(NULL);
> > +}
>
> Why is this board-specific?
I have thought about to put it in a more common place such as time_init(),
but this will be in conflict with mpc512x board. How about add an
arch_initcall(mpc85xx_clk_init) in arch/powerpc/platforms/85xx/common.c?
Thanks,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20141017/3095b9d1/attachment.sig>
More information about the Linuxppc-dev
mailing list