From 8eb79fe09682db93f2562daa6e3afe0baa2fa687 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Thu, 11 Jan 2007 12:19:38 -0800 Subject: [PATCH] musb_hdrc workqueue build fix Yet another workqueue-api-changed build fix. Signed-off-by: David Brownell --- drivers/usb/musb/plat_uds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/musb/plat_uds.c b/drivers/usb/musb/plat_uds.c index 5bcee89bd65..cd6654134c5 100644 --- a/drivers/usb/musb/plat_uds.c +++ b/drivers/usb/musb/plat_uds.c @@ -1549,9 +1549,9 @@ static DEVICE_ATTR(cable, S_IRUGO, musb_cable_show, NULL); #endif /* Only used to provide cable state change events */ -static void musb_irq_work(void *data) +static void musb_irq_work(struct work_struct *data) { - struct musb *musb = (struct musb *)data; + struct musb *musb = container_of(data, struct musb, irq_work); sysfs_notify(&musb->controller->kobj, NULL, "cable"); } @@ -1824,7 +1824,7 @@ fail: return status; } - INIT_WORK(&pThis->irq_work, musb_irq_work, pThis); + INIT_WORK(&pThis->irq_work, musb_irq_work); #ifdef CONFIG_SYSFS status = device_create_file(dev, &dev_attr_mode); -- 2.41.1