diff options
author | Tony Lindgren <tony@atomide.com> | 2008-03-03 01:31:32 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-03-05 10:23:20 +0200 |
commit | 09be7553959c9947f7cbccbe1c3094bb2e3ffd28 (patch) | |
tree | 763f3b2c145795023c478fbc74e637f4c4bcb86e | |
parent | 0cc0a441163b92fbda5fe1886cb6e9876cf08f40 (diff) | |
download | op-kernel-dev-09be7553959c9947f7cbccbe1c3094bb2e3ffd28.zip op-kernel-dev-09be7553959c9947f7cbccbe1c3094bb2e3ffd28.tar.gz |
ARM: OMAP1: Fix compile for boards depending on old gpio expander
The long term fix is to switch boards to use drivers/gpio/pcf857x.c.
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | include/asm-arm/arch-omap/gpioexpander.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap/gpioexpander.h b/include/asm-arm/arch-omap/gpioexpander.h index 7a43b0a..4eed1f8 100644 --- a/include/asm-arm/arch-omap/gpioexpander.h +++ b/include/asm-arm/arch-omap/gpioexpander.h @@ -18,7 +18,18 @@ /* Function Prototypes for GPIO Expander functions */ +#ifdef CONFIG_GPIOEXPANDER_OMAP int read_gpio_expa(u8 *, int); int write_gpio_expa(u8 , int); +#else +static inline int read_gpio_expa(u8 *val, int addr) +{ + return 0; +} +static inline int write_gpio_expa(u8 val, int addr) +{ + return 0; +} +#endif #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */ |