[PATCH] powerpc/mpc512x: Add gpio driver
Matthias Fuchs
matthias.fuchs at esd-electronics.com
Tue Feb 23 03:05:30 EST 2010
Hi Grant,
thanks for comments. I will post an updated version soon.
On Tuesday 16 February 2010 20:19, Grant Likely wrote:
> > + return 0;
> > +}
> > +arch_initcall(mpc512x_add_gpiochips);
>
> Don't do this. Either make this a proper of_platform device driver,
> or call mpc512x_add_gpiochips() explicitly from the arch platform
> setup code. Otherwise, if the kernel is built for multiplatform, this
> function will get executed regardless of the platform.
In this case I prefer moving the call to the platform code.
I tested the driver on one of our 5123 boards. Shall I add it
to mpc5121_ads.c:mpc5121_ads_setup_arch() also? So it's at least called
on the reference board? I not sure if there are some LEDs or buttons
that could use it.
Matthias
More information about the Linuxppc-dev
mailing list