regulator: core: increment open_count when regulator supply is set
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 23 Jul 2012 15:05:46 +0000 (20:35 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 4 Aug 2012 10:58:39 +0000 (11:58 +0100)
commit57ad526ae2c28d128fe0d9deeb428697151c849b
tree4c75fd52d8c957657c34590a564000c1c04b6728
parent4f842f6ba644a8e2360441aa73580373dbc3eb95
regulator: core: increment open_count when regulator supply is set

When registering the regulator and setting supply for the regulator
then increment open_count to reflect correct number of users.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c