LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File at76_usb.INIT_WORK.patch of Package at76_usb (Project DISCONTINUED:openSUSE:10.3:Update)

---
 at76c503.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: at76_usb-0.14beta1/at76c503.c
===================================================================
--- at76_usb-0.14beta1.orig/at76c503.c
+++ at76_usb-0.14beta1/at76c503.c
@@ -2298,9 +2298,9 @@ static void defer_kevent (struct at76c50
 		    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;
 
@@ -6370,7 +6370,7 @@ static struct at76c503 *alloc_new_device
 	dev->netdev = netdev;
 
 	init_MUTEX (&dev->sem);
-	INIT_WORK (&dev->kevent, kevent, dev);
+	INIT_WORK (&dev->kevent, kevent);
 
 	dev->open_count = 0;