mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regmap: Fix return code for stub regmap_get_device()
@ 2014-07-25 18:02 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2014-07-25 18:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

We return a pointer, not an int.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 include/linux/regmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index cd480fd59795..c5ed83f49c4e 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -733,7 +733,7 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
 static inline struct device *regmap_get_device(struct regmap *map)
 {
 	WARN_ONCE(1, "regmap API is disabled");
-	return -EINVAL;
+	return NULL;
 }
 
 #endif
-- 
2.0.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-25 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-25 18:02 [PATCH] regmap: Fix return code for stub regmap_get_device() Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®