[PATCH v6 09/11] ARM: pxa: change gpio to platform device
Russell King - ARM Linux
linux at arm.linux.org.uk
Tue Nov 8 18:25:42 EST 2011
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 <asm-generic/gpio.h>
>
> -#define __gpio_is_inverted(gpio) (0)
> -#define __gpio_is_occupied(gpio) (0)
> +#include <mach/cputype.h>
>
> #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 <asm-generic/gpio.h>
> -/* The defines for the driver are needed for the accelerated accessors */
> -#include "gpio-pxa.h"
> +
> +#include <mach/irqs.h>
> +#include <mach/hardware.h>
>
> #endif
Could you explain what is going on with the above two files please,
specifically why those includes are required?
Thanks.
More information about the linux-arm-kernel
mailing list