[PATCH v1 3/3]ARM: mmp: support mmc on pxa910 dkb board
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Apr 27 04:39:47 EDT 2011
On Wed, Apr 20, 2011 at 06:44:39PM +0800, Eric Miao wrote:
> > diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
> > index c8a85f1..718b87c 100644
> > --- a/arch/arm/mach-mmp/ttc_dkb.c
> > +++ b/arch/arm/mach-mmp/ttc_dkb.c
> > @@ -17,6 +17,9 @@
> > #include <linux/interrupt.h>
> > #include <linux/regulator/machine.h>
> > #include <linux/regulator/fixed.h>
> > +#include <linux/mmc/sdhci.h>
> > +#include <linux/gpio.h>
Ok.
> > +#include <linux/err.h>
> >
> > #include <asm/mach-types.h>
> > #include <asm/mach/arch.h>
> > @@ -24,6 +27,7 @@
> > #include <mach/addr-map.h>
> > #include <mach/mfp-pxa910.h>
> > #include <mach/pxa910.h>
> > +#include <mach/gpio.h>
Not ok. mach/gpio.h is included by asm/gpio.h, which is included by
linux/gpio.h. You should always include linux/gpio.h rather than its
asm/ or mach/ counterparts in case functionality is moved out of the
architecture-level headers into the architecture-independent headers.
More information about the linux-arm-kernel
mailing list