From: Dirk Behme Date: Tue, 2 Jan 2007 20:33:43 +0000 (-0800) Subject: I2C: isp1301 workqueue fixes X-Git-Tag: v2.6.21-omap1~185 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f57600be8d7b3db9dffbb785af92650de40d88a2;p=linux-2.6-omap-h63xx.git I2C: isp1301 workqueue fixes Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/chips/isp1301_omap.c b/drivers/i2c/chips/isp1301_omap.c index 2a7547f4dd1..8e5585b71a1 100644 --- a/drivers/i2c/chips/isp1301_omap.c +++ b/drivers/i2c/chips/isp1301_omap.c @@ -1119,9 +1119,9 @@ static u8 isp1301_clear_latch(struct isp1301 *isp) } static void -isp1301_work(void *data) +isp1301_work(struct work_struct *work) { - struct isp1301 *isp = data; + struct isp1301 *isp = container_of(work, struct isp1301, work); int stop; /* implicit lock: we're the only task using this device */ @@ -1525,7 +1525,7 @@ static int isp1301_probe(struct i2c_adapter *bus, int address, int kind) if (!isp) return 0; - INIT_WORK(&isp->work, isp1301_work, isp); + INIT_WORK(&isp->work, isp1301_work); init_timer(&isp->timer); isp->timer.function = isp1301_timer; isp->timer.data = (unsigned long) isp;