* [RESEND][PATCH v2] regulator: Add stub for devm_regulator_get_exclusive
@ 2014-09-17 8:48 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2014-09-17 8:48 UTC (permalink / raw)
To: Mark Brown; +Cc: Liam Girdwood, linux-kernel@vger.kernel.org
Also makes regulator_get_exclusive and devm_regulator_get_exclusive stub
functions return error pointer.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Now drivers/gpu/drm/msm/hdmi/hdmi.c is using devm_regulator_get
instead of devm_regulator_get_exclusive.
commit 3e87599b68e7929a84a32ab65ad17b79a3f271f6
"drm/msm/mdp4: add LVDS panel support"
So I remove the build error message in commit log.
include/linux/regulator/consumer.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index f8a8733..66473e3 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -262,7 +262,13 @@ 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
+devm_regulator_get_exclusive(struct device *dev, const char *id)
+{
+ return ERR_PTR(-ENODEV);
}
static inline struct regulator *__must_check
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-17 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 8:48 [RESEND][PATCH v2] regulator: Add stub for devm_regulator_get_exclusive Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).