git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5c89e
)
BCI: pass di pointer to avoid NULL pointer dereference later
author
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 17 Jun 2011 12:31:44 +0000
(15:31 +0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 17 Jun 2011 12:31:44 +0000
(15:31 +0300)
drivers/power/twl4030_bci_battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/twl4030_bci_battery.c
b/drivers/power/twl4030_bci_battery.c
index
bdc3ff4
..
5cc55a9
100644
(file)
--- a/
drivers/power/twl4030_bci_battery.c
+++ b/
drivers/power/twl4030_bci_battery.c
@@
-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);