Skip to content

Commit

Permalink
ARM: OMAP1: Fix compile for boards depending on old gpio expander
Browse files Browse the repository at this point in the history
The long term fix is to switch boards to use drivers/gpio/pcf857x.c.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Mar 5, 2008
1 parent 0cc0a44 commit 09be755
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/asm-arm/arch-omap/gpioexpander.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 09be755

Please sign in to comment.