aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag/src/diag.h
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2007-05-26 15:54:22 +0000
committerImre Kaloz <kaloz@openwrt.org>2007-05-26 15:54:22 +0000
commitf990e0403b5a533abbe6718ebaabb7338c6fcb5d (patch)
treeb8b2e2dbef51fbf1bb11a07f12a249de0ea54a37 /package/broadcom-diag/src/diag.h
parent4c730be09cfe80628bc2edfee2a864b1c89256c8 (diff)
downloadupstream-f990e0403b5a533abbe6718ebaabb7338c6fcb5d.tar.gz
upstream-f990e0403b5a533abbe6718ebaabb7338c6fcb5d.tar.bz2
upstream-f990e0403b5a533abbe6718ebaabb7338c6fcb5d.zip
bcm47xx compile fix for .21, thanks to noz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7337 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src/diag.h')
-rw-r--r--package/broadcom-diag/src/diag.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.h b/package/broadcom-diag/src/diag.h
index dcc122ad2b..9b6dc36336 100644
--- a/package/broadcom-diag/src/diag.h
+++ b/package/broadcom-diag/src/diag.h
@@ -88,7 +88,11 @@ static struct platform_t platform;
static void register_buttons(struct button_t *b);
static void unregister_buttons(struct button_t *b);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
+static void hotplug_button(struct work_struct *work);
+#else
static void hotplug_button(struct event_t *event);
+#endif
static irqreturn_t button_handler(int irq, void *dev_id, struct pt_regs *regs);
/* leds */