projects
/
linux-edison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a1ad9
)
regulator: Warn when unregistering an in-use regulator
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 21 Jul 2009 15:00:25 +0000
(16:00 +0100)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:39 +0000
(13:32 +0100)
We're probably going to start oopsing fairly soon after this happens.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index
e11c222
..
79a6910
100644
(file)
--- a/
drivers/regulator/core.c
+++ b/
drivers/regulator/core.c
@@
-2253,6
+2253,7
@@
void regulator_unregister(struct regulator_dev *rdev)
return;
mutex_lock(®ulator_list_mutex);
+ WARN_ON(rdev->open_count);
unset_regulator_supplies(rdev);
list_del(&rdev->list);
if (rdev->supply)