]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: Initiallize func_cb to NULL
authorTony Lindgren <tony@atomide.com>
Tue, 9 Sep 2008 17:40:43 +0000 (10:40 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Sep 2008 17:40:43 +0000 (10:40 -0700)
As pointed out by Adrian Hunter.

Signed-off-by: Tony Lindren <tony@atomide.com>
drivers/power/twl4030_bci_battery.c

index 4e66a962555786c95ded991468d429c2cbf638f1..aef8bbd2836f4181b37dd52659ed34432391136d 100644 (file)
@@ -605,6 +605,7 @@ static int twl4030backupbatt_voltage(void)
 
        req.channels = (1 << 9);
        req.method = TWL4030_MADC_SW1;
+       req.func_cb = NULL;
        twl4030_madc_conversion(&req);
        temp = (u16)req.rbuf[9];