Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a60e8df6 authored by Linus Walleij's avatar Linus Walleij Committed by Samuel Ortiz
Browse files

mfd: Fix ab8500 error path bug



We were not freeing the irq properly in the error path in
the AB8500 driver.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMaxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: default avatarAlex Macro <alex.macro@stericsson.com>
Signed-off-by: default avatarMichel Jaouen <michel.jaouen@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent e7c248a0
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -956,11 +956,12 @@ int __devinit ab8500_init(struct ab8500 *ab8500)
	return ret;
	return ret;


out_freeirq:
out_freeirq:
	if (ab8500->irq_base) {
	if (ab8500->irq_base)
		free_irq(ab8500->irq, ab8500);
		free_irq(ab8500->irq, ab8500);
out_removeirq:
out_removeirq:
	if (ab8500->irq_base)
		ab8500_irq_remove(ab8500);
		ab8500_irq_remove(ab8500);
	}

	return ret;
	return ret;
}
}