diff options
-rw-r--r-- | drivers/mfd/ab8500-gpadc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index 178cbc55caea..b5b75b74e86c 100644 --- 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) | |||
267 | if (IS_ERR(gpadc->regu)) { | 267 | if (IS_ERR(gpadc->regu)) { |
268 | ret = PTR_ERR(gpadc->regu); | 268 | ret = PTR_ERR(gpadc->regu); |
269 | dev_err(gpadc->dev, "failed to get vtvout LDO\n"); | 269 | dev_err(gpadc->dev, "failed to get vtvout LDO\n"); |
270 | goto fail; | 270 | goto fail_irq; |
271 | } | 271 | } |
272 | list_add_tail(&gpadc->node, &ab8500_gpadc_list); | 272 | list_add_tail(&gpadc->node, &ab8500_gpadc_list); |
273 | dev_dbg(gpadc->dev, "probe success\n"); | 273 | dev_dbg(gpadc->dev, "probe success\n"); |
274 | return 0; | 274 | return 0; |
275 | fail_irq: | ||
276 | free_irq(gpadc->irq, gpadc); | ||
275 | fail: | 277 | fail: |
276 | kfree(gpadc); | 278 | kfree(gpadc); |
277 | gpadc = NULL; | 279 | gpadc = NULL; |