From 708739a058a59b76f72062bda81fb961e05d61e8 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Tue, 9 Jan 2007 15:22:28 -0800 Subject: [PATCH] ARM: OMAP: Workqueue changes for tahvo-usb ARM: OMAP: Workqueue changes for tahvo-usb.c Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- drivers/cbus/tahvo-usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cbus/tahvo-usb.c b/drivers/cbus/tahvo-usb.c index 829ab0a0ea2..45b432836ae 100644 --- a/drivers/cbus/tahvo-usb.c +++ b/drivers/cbus/tahvo-usb.c @@ -535,9 +535,9 @@ static int tahvo_usb_set_peripheral(struct otg_transceiver *otg, struct usb_gadg 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 *dev) #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 -- 2.41.1