Shawn Guo e2c98eaf92 regulator: core: remove sysfs entry properly in regulator_put
With changes introduced by commit 222cc7b (regulator: core: Allow
multiple requests of a single supply mapping) on create_regulator,
regulator_put needs a corresponding update on sysfs entry removing.

Also regulator->dev still needs to get assigned in create_regulator,
otherwise, sysfs_remove_link call in regulator_put will get bypassed.

Reported-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-07-05 13:15:40 +01:00
..
2012-05-29 11:53:11 -07:00
2012-05-16 09:48:37 +01:00
2012-05-21 16:49:16 -07:00
2012-04-10 09:52:59 +01:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-04-10 09:52:59 +01:00