projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114040
)
regulator: Return an error from stubbed regulator_get_exclusive()
author
Mark Brown
<broonie@kernel.org>
Fri, 24 Oct 2014 20:56:58 +0000
(21:56 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 24 Oct 2014 21:19:12 +0000
(22:19 +0100)
The user hasn't got a regulator and shouldn't be mislead into thinking
they have one; really we should probably remove this stub entirely (and
may well before the next merge window).
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/consumer.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/regulator/consumer.h
b/include/linux/regulator/consumer.h
index d347c805f923f8539b6430fa30119527edb7f244..c0c0a437ec756254e657d7cd18e239927d3f86ba 100644
(file)
--- a/
include/linux/regulator/consumer.h
+++ b/
include/linux/regulator/consumer.h
@@
-282,7
+282,7
@@
devm_regulator_get(struct device *dev, const char *id)
static inline struct regulator *__must_check
regulator_get_exclusive(struct device *dev, const char *id)
{
- return
NULL
;
+ return
ERR_PTR(-ENODEV)
;
}
static inline struct regulator *__must_check