From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [patch 2.6.20-rc3-omap1] musb_hdrc workqueue build fix Date: Thu, 11 Jan 2007 12:20:10 -0800 Message-ID: <20070111202010.GC24713@atomide.com> References: <200701101717.18559.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200701101717.18559.david-b@pacbell.net> 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: David Brownell Cc: Linux OMAP List-Id: linux-omap@vger.kernel.org * David Brownell [070110 17:18]: > 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); Pushed. Tony