projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6321992
)
mfd: Free dangling irq in ab8500 gpadc probe error path
author
Daniel Willerud
<daniel.willerud@stericsson.com>
Sat, 5 Mar 2011 10:46:27 +0000
(11:46 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 23 Mar 2011 09:42:04 +0000
(10:42 +0100)
Signed-off-by: Daniel Willerud <daniel.willerud@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-gpadc.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/ab8500-gpadc.c
b/drivers/mfd/ab8500-gpadc.c
index
178cbc5
..
b5b75b7
100644
(file)
--- a/
drivers/mfd/ab8500-gpadc.c
+++ b/
drivers/mfd/ab8500-gpadc.c
@@
-267,11
+267,13
@@
static int __devinit ab8500_gpadc_probe(struct platform_device *pdev)
if (IS_ERR(gpadc->regu)) {
ret = PTR_ERR(gpadc->regu);
dev_err(gpadc->dev, "failed to get vtvout LDO\n");
- goto fail;
+ goto fail
_irq
;
}
list_add_tail(&gpadc->node, &ab8500_gpadc_list);
dev_dbg(gpadc->dev, "probe success\n");
return 0;
+fail_irq:
+ free_irq(gpadc->irq, gpadc);
fail:
kfree(gpadc);
gpadc = NULL;