aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-23 11:05:46 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-04 06:58:39 -0400
commit57ad526ae2c28d128fe0d9deeb428697151c849b (patch)
tree4c75fd52d8c957657c34590a564000c1c04b6728 /drivers/regulator/core.c
parent4f842f6ba644a8e2360441aa73580373dbc3eb95 (diff)
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>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index f092588a078c..b28221af648e 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev,
974 err = -ENOMEM; 974 err = -ENOMEM;
975 return err; 975 return err;
976 } 976 }
977 supply_rdev->open_count++;
977 978
978 return 0; 979 return 0;
979} 980}