diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-06 12:57:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-20 07:47:11 +0200 |
commit | 0d14bc0ec4f8017e49ab5d2d91c45f5957afc31d (patch) | |
tree | 30b1d3e1b3eab5d735872c40c488036cb97fb184 /arch/ppc | |
parent | 85008e55422ff7576a251c2214c7d32ad8aab600 (diff) | |
download | barebox-0d14bc0ec4f8017e49ab5d2d91c45f5957afc31d.tar.gz barebox-0d14bc0ec4f8017e49ab5d2d91c45f5957afc31d.tar.xz |
gpio: Drop asm-generic/gpio.h
Since we no longer have custom gpio function prototypes we can
drop the prototypes from asm-generic/gpio.h can add them to
include/gpio.h instead. While at it add static inline dummy wrappers
for !CONFIG_GENERIC_GPIO so that code using gpios can compile without
gpio support.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/boards/freescale-p1010rdb/p1010rdb.c | 2 | ||||
-rw-r--r-- | arch/ppc/boards/geip-da923rc/da923rc.c | 1 | ||||
-rw-r--r-- | arch/ppc/mach-mpc85xx/include/mach/gpio.h | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/arch/ppc/boards/freescale-p1010rdb/p1010rdb.c b/arch/ppc/boards/freescale-p1010rdb/p1010rdb.c index 5bae5849ca..60cae46d25 100644 --- a/arch/ppc/boards/freescale-p1010rdb/p1010rdb.c +++ b/arch/ppc/boards/freescale-p1010rdb/p1010rdb.c @@ -21,6 +21,7 @@ #include <net.h> #include <types.h> #include <i2c/i2c.h> +#include <gpio.h> #include <partition.h> #include <memory.h> #include <asm/cache.h> @@ -32,7 +33,6 @@ #include <mach/immap_85xx.h> #include <mach/gianfar.h> #include <mach/clock.h> -#include <mach/gpio.h> #include <mach/early_udelay.h> #include <of.h> diff --git a/arch/ppc/boards/geip-da923rc/da923rc.c b/arch/ppc/boards/geip-da923rc/da923rc.c index 3d77349e0d..b6b5d56acd 100644 --- a/arch/ppc/boards/geip-da923rc/da923rc.c +++ b/arch/ppc/boards/geip-da923rc/da923rc.c @@ -21,6 +21,7 @@ #include <driver.h> #include <asm/io.h> #include <net.h> +#include <gpio.h> #include <ns16550.h> #include <partition.h> #include <environment.h> diff --git a/arch/ppc/mach-mpc85xx/include/mach/gpio.h b/arch/ppc/mach-mpc85xx/include/mach/gpio.h index 61f634922e..b41ecc5214 100644 --- a/arch/ppc/mach-mpc85xx/include/mach/gpio.h +++ b/arch/ppc/mach-mpc85xx/include/mach/gpio.h @@ -10,8 +10,6 @@ #ifndef _MACH_PPC_GPIO_H #define _MACH_PPC_GPIO_H -#include <asm-generic/gpio.h> - extern void fsl_enable_gpiout(void); #endif /* _MACH_PPC_GPIO_H */ |