public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Workqueue changes for tahvo-usb
@ 2007-01-04 16:37 Dirk Behme
  2007-01-09 23:22 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2007-01-04 16:37 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]


ARM: OMAP: Workqueue changes for tahvo-usb.c

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>


[-- Attachment #2: tahvo_usb_workqueue_fix.txt --]
[-- Type: text/plain, Size: 828 bytes --]

Index: linux-osk/drivers/cbus/tahvo-usb.c
===================================================================
--- linux-osk.orig/drivers/cbus/tahvo-usb.c
+++ linux-osk/drivers/cbus/tahvo-usb.c
@@ -535,9 +535,9 @@ static int tahvo_usb_set_peripheral(stru
 	return 0;
 }
 
-static void tahvo_usb_irq_work(void *data)
+static void tahvo_usb_irq_work(struct work_struct *work)
 {
-	struct tahvo_usb *tu = (struct tahvo_usb *)data;
+	struct tahvo_usb *tu = container_of(work, struct tahvo_usb, irq_work);
 
 	mutex_lock(&tu->serialize);
 	check_vbus_state(tu);
@@ -631,7 +631,7 @@ static int tahvo_usb_probe(struct device
 #endif
 #endif
 
-	INIT_WORK(&tu->irq_work, tahvo_usb_irq_work, tu);
+	INIT_WORK(&tu->irq_work, tahvo_usb_irq_work);
 	mutex_init(&tu->serialize);
 
 	/* Set initial state, so that we generate kevents only on


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-09 23:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 16:37 [PATCH] ARM: OMAP: Workqueue changes for tahvo-usb Dirk Behme
2007-01-09 23:22 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox