From: Mark Brown Date: Sun, 26 Aug 2012 20:58:20 +0000 (-0700) Subject: extcon: arizona: Free MICDET IRQ on error during probe X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=80732cc1026af128e89f43aa60ddf2220e8169e8;p=openwrt%2Fstaging%2Fblogic.git extcon: arizona: Free MICDET IRQ on error during probe Signed-off-by: Mark Brown Signed-off-by: Chanwoo Choi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index fa2114f1f9ec..13eafcbbd3f8 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -488,11 +488,13 @@ static int __devinit arizona_extcon_probe(struct platform_device *pdev) ret = input_register_device(info->input); if (ret) { dev_err(&pdev->dev, "Can't register input device: %d\n", ret); - goto err_fall_wake; + goto err_micdet; } return 0; +err_micdet: + arizona_free_irq(arizona, ARIZONA_IRQ_MICDET, info); err_fall_wake: arizona_set_irq_wake(arizona, ARIZONA_IRQ_JD_FALL, 0); err_fall: