]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-omap/gpioexpander.h
ARM: OMAP1: Fix compile for boards depending on old gpio expander
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-omap / gpioexpander.h
index 7a43b0a912e4ec9826440cf6ab4d30fe031a8065..4eed1f80e2fb57c6ae4cd7c84d2b9ddefede12be 100644 (file)
 
 /* 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 */