Commit 80732cc1 authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman

extcon: arizona: Free MICDET IRQ on error during probe

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a500e0e7
...@@ -488,11 +488,13 @@ static int __devinit arizona_extcon_probe(struct platform_device *pdev) ...@@ -488,11 +488,13 @@ static int __devinit arizona_extcon_probe(struct platform_device *pdev)
ret = input_register_device(info->input); ret = input_register_device(info->input);
if (ret) { if (ret) {
dev_err(&pdev->dev, "Can't register input device: %d\n", ret); dev_err(&pdev->dev, "Can't register input device: %d\n", ret);
goto err_fall_wake; goto err_micdet;
} }
return 0; return 0;
err_micdet:
arizona_free_irq(arizona, ARIZONA_IRQ_MICDET, info);
err_fall_wake: err_fall_wake:
arizona_set_irq_wake(arizona, ARIZONA_IRQ_JD_FALL, 0); arizona_set_irq_wake(arizona, ARIZONA_IRQ_JD_FALL, 0);
err_fall: err_fall:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment