]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: isp1301 workqueue fixes
authorDirk Behme <dirk.behme_at_gmail.com>
Tue, 2 Jan 2007 20:33:43 +0000 (12:33 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 2 Jan 2007 20:33:43 +0000 (12:33 -0800)
Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/isp1301_omap.c

index 2a7547f4dd18d87e3a76d35cfc67383f3eca9ac3..8e5585b71a19250ef9dc05dd8c57490d6434db8c 100644 (file)
@@ -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;