regulator: add unset_regulator_supplies to fix regulator_unregister
authorMike Rapoport <mike@compulab.co.il>
Thu, 22 Jan 2009 14:00:29 +0000 (16:00 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 31 Mar 2009 08:56:23 +0000 (09:56 +0100)
commit0f1d747bfa89de4ca52dc1dffdcce35a2b8a1532
treebb189d19d01af81a73a6966c257d7038477b0444
parent90ca563b1030bece8a4f15a910e39a46f059ff48
regulator: add unset_regulator_supplies to fix regulator_unregister

Currently regulator_unregister does not clear regulator <--> consumer
mapping.
This patch introduces unset_regulator_supplies that clear the map.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c