diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-07-23 15:05:46 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-04 10:58:39 (GMT) |
commit | 57ad526ae2c28d128fe0d9deeb428697151c849b (patch) | |
tree | 4c75fd52d8c957657c34590a564000c1c04b6728 /drivers/regulator/core.c | |
parent | 4f842f6ba644a8e2360441aa73580373dbc3eb95 (diff) | |
download | linux-fsl-qoriq-57ad526ae2c28d128fe0d9deeb428697151c849b.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index f092588..b28221a 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev, err = -ENOMEM; return err; } + supply_rdev->open_count++; return 0; } |