From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: [patch 2.6.20-rc3-omap1] musb_hdrc workqueue build fix Date: Wed, 10 Jan 2007 17:17:17 -0800 Message-ID: <200701101717.18559.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: Linux OMAP List-Id: linux-omap@vger.kernel.org Yet another workqueue-api-changed build fix. Signed-off-by: David Brownell --- h4.orig/drivers/usb/musb/plat_uds.c 2007-01-10 14:19:43.000000000 -0800 +++ h4/drivers/usb/musb/plat_uds.c 2007-01-10 00:21:44.000000000 -0800 @@ -1561,9 +1561,9 @@ static DEVICE_ATTR(cable, S_IRUGO, musb_ #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"); } @@ -1835,7 +1835,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);