regmap: Fix return code for stub regmap_get_device()
authorMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 18:01:53 +0000 (19:01 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 18:01:53 +0000 (19:01 +0100)
We return a pointer, not an int.

Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/regmap.h

index cd480fd59795aecd4ca45ba134669ff4f33846d3..c5ed83f49c4eada4e30dabde2968fa2c79e396ec 100644 (file)
@@ -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