summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-12-25 22:26:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-12-25 22:26:08 +0000
commit0248499b6767bea83e72f7673c2a8bed023faeaf (patch)
tree4e85b725dc7ae4a27abf952028bb8d692c4a7ca2 /openwrt
parent5dff113a9a01985f5f0a4c90dff17b60af78b29b (diff)
downloadmtk-20170518-0248499b6767bea83e72f7673c2a8bed023faeaf.zip
mtk-20170518-0248499b6767bea83e72f7673c2a8bed023faeaf.tar.gz
mtk-20170518-0248499b6767bea83e72f7673c2a8bed023faeaf.tar.bz2
fix missing sbh symbol on 2.4
SVN-Revision: 2784
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/target/linux/package/switch/src/gpio.h6
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 95cf670..8257600 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);