From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Tue, 8 Nov 2011 23:25:42 +0000 Subject: [PATCH v6 09/11] ARM: pxa: change gpio to platform device In-Reply-To: <1320747859-8366-10-git-send-email-haojian.zhuang@marvell.com> References: <1320747859-8366-1-git-send-email-haojian.zhuang@marvell.com> <1320747859-8366-10-git-send-email-haojian.zhuang@marvell.com> Message-ID: <20111108232542.GL12913@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Nov 08, 2011 at 06:24:17PM +0800, Haojian Zhuang wrote: > diff --git a/arch/arm/mach-mmp/include/mach/gpio.h b/arch/arm/mach-mmp/include/mach/gpio.h > index 904466d..13219eb 100644 > --- a/arch/arm/mach-mmp/include/mach/gpio.h > +++ b/arch/arm/mach-mmp/include/mach/gpio.h > @@ -3,7 +3,6 @@ > > #include > > -#define __gpio_is_inverted(gpio) (0) > -#define __gpio_is_occupied(gpio) (0) > +#include > > #endif /* __ASM_MACH_GPIO_H */ > diff --git a/arch/arm/mach-pxa/include/mach/gpio.h b/arch/arm/mach-pxa/include/mach/gpio.h > index 561cdbf..0248e43 100644 > --- a/arch/arm/mach-pxa/include/mach/gpio.h > +++ b/arch/arm/mach-pxa/include/mach/gpio.h > @@ -25,7 +25,8 @@ > #define __ASM_ARCH_PXA_GPIO_H > > #include > -/* The defines for the driver are needed for the accelerated accessors */ > -#include "gpio-pxa.h" > + > +#include > +#include > > #endif Could you explain what is going on with the above two files please, specifically why those includes are required? Thanks.