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

Commit 1d017b6b authored by Mark Brown's avatar Mark Brown
Browse files

mfd: arizona: Add missing cleanup on remove



We'd forgotten to disable /RESET or the regulators. Practically speaking
this code is unlikely to ever be run.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d9d03496
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -839,6 +839,11 @@ int arizona_dev_exit(struct arizona *arizona)
	arizona_free_irq(arizona, ARIZONA_IRQ_CLKGEN_ERR, arizona);
	pm_runtime_disable(arizona->dev);
	arizona_irq_exit(arizona);
	if (arizona->pdata.reset)
		gpio_set_value_cansleep(arizona->pdata.reset, 0);
	regulator_disable(arizona->dcvdd);
	regulator_bulk_disable(ARRAY_SIZE(arizona->core_supplies),
			       arizona->core_supplies);
	return 0;
}
EXPORT_SYMBOL_GPL(arizona_dev_exit);