9
0
Fork 0

ARM: remove include of mach/gpio.h for gpiolib users

gpiolib user have nothing to define in their machine
specific gpio.h, so do not include it.

The only thing they could define would be ARCH_NR_GPIOS,
but currently no architecture defines it. Should an architecure
feel the need to do it this would be a good opportunity to
get rid of this limitation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-08-16 12:46:07 +02:00
parent 1068e0a545
commit 8c1180c3ed
8 changed files with 4 additions and 20 deletions

View File

@ -1,7 +1,10 @@
#ifndef _ARCH_ARM_GPIO_H
#define _ARCH_ARM_GPIO_H
/* not all ARM platforms necessarily support this API ... */
#ifndef CONFIG_GPIOLIB
#include <mach/gpio.h>
#else
#include <asm-generic/gpio.h>
#endif
#endif /* _ARCH_ARM_GPIO_H */

View File

@ -1 +0,0 @@
#include <asm-generic/gpio.h>

View File

@ -1,3 +0,0 @@
#include <asm-generic/gpio.h>
#define CLPS711X_GPIO(prt,bit) ((prt) * 8 + (bit))

View File

@ -1 +0,0 @@
#include <asm-generic/gpio.h>

View File

@ -1,6 +0,0 @@
#ifndef __ASM_ARCH_GPIO_H
#define __ASM_ARCH_GPIO_H
#include <asm-generic/gpio.h>
#endif /* __ASM_ARCH_GPIO_H */

View File

@ -1,6 +0,0 @@
#ifndef __ASM_ARCH_GPIO_H
#define __ASM_ARCH_GPIO_H
#include <asm-generic/gpio.h>
#endif /* __ASM_ARCH_GPIO_H */

View File

@ -1 +0,0 @@
#include <asm-generic/gpio.h>

View File

@ -1 +0,0 @@
#include <asm-generic/gpio.h>