[PATCH 1/4] ARM i.MX: Move gpio initialization to SoC specific files

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 3 05:34:34 EST 2011


On Thu, Mar 03, 2011 at 10:29:04AM +0000, Russell King - ARM Linux wrote:
> On Wed, Mar 02, 2011 at 12:01:20PM +0100, Sascha Hauer wrote:
> > diff --git a/arch/arm/mach-imx/mm-imx1.c b/arch/arm/mach-imx/mm-imx1.c
> > index 378c61b..8613e44 100644
> > --- a/arch/arm/mach-imx/mm-imx1.c
> > +++ b/arch/arm/mach-imx/mm-imx1.c
> > @@ -23,6 +23,8 @@
> >  
> >  #include <mach/common.h>
> >  #include <mach/hardware.h>
> > +#include <mach/gpio.h>
> 
> linux/gpio.h

I guessed that you would say that. I used mach/gpio.h intentionally
because I don't need the gpio functions but the
DEFINE_IMX_GPIO_PORT_IRQ_HIGH macro from this header. Should I use
linux/gpio.h anyway?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list