projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f842f6
)
regulator: core: increment open_count when regulator supply is set
author
Laxman Dewangan
<ldewangan@nvidia.com>
Mon, 23 Jul 2012 15:05:46 +0000
(20:35 +0530)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sat, 4 Aug 2012 10:58:39 +0000
(11:58 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index
f092588
..
b28221a
100644
(file)
--- 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;
}