extcon: arizona: Free MICDET IRQ on error during probe
PATCH 1/1 extcon: arizona: Free MICDET IRQ on error during probe
Signed-off-by Mark Brown <[email protected]>
--- drivers/extcon/extcon-arizona.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/extcon/extcon-arizona.c +3 -1
@@ -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:
Signature · 1 line
1.7.10.4
Chanwoo Choi
maintainerQuoted 14 lines · Mark Brown
Signed-off-by Mark Brown <[email protected]>--- drivers/extcon/extcon-arizona.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/extcon/extcon-arizona.c +0
-1@@ -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;
drivers/extcon/extcon-arizona.c static int __devinit arizona_extcon_probe(struct platform_device *pdev) · line 500
Quoted 10 lines
drivers/extcon/extcon-arizona.c +3
-0+ 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:
Thanks much,
Signed-off-by Chanwoo Choi <[email protected]>
I will apply this patch to
http://10.90.51.51/cgi-bin/gitweb.cgi?p=linux-samsung;a=shortlog;h=refs/heads/extcon-for-next
and you can check it after some hours.