]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP1: Fix compile for boards depending on old gpio expander
authorTony Lindgren <tony@atomide.com>
Mon, 3 Mar 2008 09:31:32 +0000 (01:31 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Mar 2008 08:23:20 +0000 (10:23 +0200)
The long term fix is to switch boards to use drivers/gpio/pcf857x.c.

Signed-off-by: Tony Lindgren <tony@atomide.com>
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 */