aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-25 14:01:53 -0400
committerMark Brown <broonie@linaro.org>2014-07-25 14:01:53 -0400
commit1d33dc6b0f0fd1a1f65011f54165c558daf46638 (patch)
tree82f8b45f2906c8abd6791e5b78287bbe05117568
parentfa2fbe4a981a70866d20cee62af0d89eb6b6027e (diff)
regmap: Fix return code for stub regmap_get_device()
We return a pointer, not an int. Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--include/linux/regmap.h2
1 files changed, 1 insertions, 1 deletions
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,
733static inline struct device *regmap_get_device(struct regmap *map) 733static inline struct device *regmap_get_device(struct regmap *map)
734{ 734{
735 WARN_ONCE(1, "regmap API is disabled"); 735 WARN_ONCE(1, "regmap API is disabled");
736 return -EINVAL; 736 return NULL;
737} 737}
738 738
739#endif 739#endif