BCI: pass di pointer to avoid NULL pointer dereference later
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jun 2011 12:31:44 +0000 (15:31 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jun 2011 12:31:44 +0000 (15:31 +0300)
drivers/power/twl4030_bci_battery.c

index bdc3ff4..5cc55a9 100644 (file)
@@ -1189,7 +1189,7 @@ static int __init twl4030_bci_battery_probe(struct platform_device *pdev)
 
        /* request BCI interruption */
        ret = request_irq(TWL4030_MODIRQ_BCI, twl4030battery_interrupt,
-               0, pdev->name, NULL);
+               0, pdev->name, di);
        if (ret) {
                dev_dbg(&pdev->dev, "could not request irq %d, status %d\n",
                        TWL4030_MODIRQ_BCI, ret);