From 3237230249938eff87bc40954b754c89af0f0a3e Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Sat, 26 May 2007 15:54:22 +0000 Subject: bcm47xx compile fix for .21, thanks to noz SVN-Revision: 7337 --- package/broadcom-diag/src/diag.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/broadcom-diag/src/diag.h') 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 */ -- cgit v1.2.3