diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-01-08 22:41:08 +0100 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-01-08 22:41:08 +0100 |
commit | 0f0eaabaf8d22c50d9664bda3e5a83ae9dbd1337 (patch) | |
tree | 18a211fb8a6516db97b2370b5f72f081a2afae0b | |
parent | 4f37a22c460a274e2bf0222d81bef2bcd12adb9c (diff) |
adjust to new workqueue api
-rw-r--r-- | at76c503.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2586,9 +2586,9 @@ static void defer_kevent (struct at76c503 *dev, int flag) dev->netdev->name, flag); } -static void kevent(void *data) +static void kevent(struct work_struct *work) { - struct at76c503 *dev = data; + struct at76c503 *dev = container_of(work, struct at76c503, kevent); int ret; unsigned long flags; @@ -6636,6 +6636,7 @@ static int at76c503_alloc_urbs(struct at76c503 *dev) return 0; } + static struct at76c503 *alloc_new_device(struct usb_device *udev, int board_type, const char *netdev_name) @@ -6658,7 +6659,7 @@ static struct at76c503 *alloc_new_device(struct usb_device *udev, dev->netdev = netdev; init_MUTEX (&dev->sem); - INIT_WORK (&dev->kevent, kevent, dev); + INIT_WORK(&dev->kevent, kevent); dev->open_count = 0; |