Subject: [PATCH] m68k: Atari EtherNEC workqueue updates Workqueue updates for the Atari EtherNEC driver Signed-off-by: Geert Uytterhoeven --- drivers/net/atari_ethernec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/drivers/net/atari_ethernec.c +++ b/drivers/net/atari_ethernec.c @@ -96,6 +96,7 @@ static const char version2[] = #include #include #include +#include #include #include @@ -222,7 +223,7 @@ static int use_poll; */ static wait_queue_head_t WaitQ; -static struct work_struct tqueue; +static struct delayed_work tqueue; #ifdef ETHERNEC_USE_POLL static struct { @@ -234,7 +235,7 @@ static struct { static struct net_device *poll_dev = NULL; -static void atari_ethernec_int(unsigned long dev_addr) +static void atari_ethernec_int(struct work_struct *work) { struct net_device *dev = poll_dev; @@ -281,7 +282,7 @@ static void atari_ethernec_start_poll(st init_waitqueue_head(&WaitQ); - INIT_WORK(&tqueue, (void (*)(void *))atari_ethernec_int, dev); + INIT_DELAYED_WORK(&tqueue, atari_ethernec_int); schedule_delayed_work(&tqueue, 1); #ifdef ETHERNEC_USE_POLL if (!poll_ops.poll_queue.func ||