X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbroadcom-diag%2Fsrc%2Fdiag.h;fp=package%2Fbroadcom-diag%2Fsrc%2Fdiag.h;h=9b6dc3633652323f2564478dcecf63dcd71fa7c3;hb=16cbe040ffadb2e79c42766c59305bf9ab8629e8;hp=dcc122ad2b5cfcf9629d5f46fbb0983917129ff3;hpb=f7bbf53880298080015cc9f9b9e7a1405fe83c49;p=openwrt-10.03%2F.git diff --git a/package/broadcom-diag/src/diag.h b/package/broadcom-diag/src/diag.h index dcc122ad2..9b6dc3633 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 */