mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-24 15:20:31 +07:00
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: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Alex Macro <alex.macro@stericsson.com> Signed-off-by: Michel Jaouen <michel.jaouen@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
d2cb87c23e
commit
6d95b7fdd0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user