diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-25 22:26:08 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-25 22:26:08 +0000 |
commit | 5340724d83c65c5624020a97e5323580421734c8 (patch) | |
tree | aaac20b610132ee61224dc1d71b024c38631f9dd /openwrt/target/linux/package | |
parent | dba3b610f25544c7e045b0b10464f51967f4c827 (diff) |
fix missing sbh symbol on 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2784 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/package')
-rw-r--r-- | openwrt/target/linux/package/switch/src/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/switch/src/gpio.h b/openwrt/target/linux/package/switch/src/gpio.h index 95cf670f9e..8257600331 100644 --- a/openwrt/target/linux/package/switch/src/gpio.h +++ b/openwrt/target/linux/package/switch/src/gpio.h @@ -3,7 +3,13 @@ #if defined(BCMGPIO2) +#ifdef LINUX_2_4 +#define sbh bcm947xx_sbh +extern void *bcm947xx_sbh; +#else extern void *sbh; +#endif + extern __u32 sb_gpioin(void *sbh); extern __u32 sb_gpiointpolarity(void *sbh, __u32 mask, __u32 val, __u8 prio); extern __u32 sb_gpiointmask(void *sbh, __u32 mask, __u32 val, __u8 prio); |