Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: arizona: Free MICDET IRQ on error during probe

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mark Brown and committed by
Greg Kroah-Hartman
80732cc1 a500e0e7

+3 -1
+3 -1
drivers/extcon/extcon-arizona.c
··· 488 488 ret = input_register_device(info->input); 489 489 if (ret) { 490 490 dev_err(&pdev->dev, "Can't register input device: %d\n", ret); 491 - goto err_fall_wake; 491 + goto err_micdet; 492 492 } 493 493 494 494 return 0; 495 495 496 + err_micdet: 497 + arizona_free_irq(arizona, ARIZONA_IRQ_MICDET, info); 496 498 err_fall_wake: 497 499 arizona_set_irq_wake(arizona, ARIZONA_IRQ_JD_FALL, 0); 498 500 err_fall: