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

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
...@@ -956,11 +956,12 @@ int __devinit ab8500_init(struct ab8500 *ab8500) ...@@ -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;
} }
......
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