summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-omap
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2008-03-03 10:31:32 +0100
committerTony Lindgren <tony@atomide.com>2008-03-05 09:23:20 +0100
commit09be7553959c9947f7cbccbe1c3094bb2e3ffd28 (patch)
tree763f3b2c145795023c478fbc74e637f4c4bcb86e /include/asm-arm/arch-omap
parentARM: OMAP1: omap h3 regression and build fix (diff)
downloadlinux-09be7553959c9947f7cbccbe1c3094bb2e3ffd28.tar.xz
linux-09be7553959c9947f7cbccbe1c3094bb2e3ffd28.zip
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>
Diffstat (limited to 'include/asm-arm/arch-omap')
-rw-r--r--include/asm-arm/arch-omap/gpioexpander.h11
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 7a43b0a912e4..4eed1f80e2fb 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 */