From: Mark Brown Date: Fri, 25 Jul 2014 18:01:53 +0000 (+0100) Subject: regmap: Fix return code for stub regmap_get_device() X-Git-Tag: firefly_0821_release~176^2~3481^2^2^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d33dc6b0f0fd1a1f65011f54165c558daf46638;p=firefly-linux-kernel-4.4.55.git regmap: Fix return code for stub regmap_get_device() We return a pointer, not an int. Signed-off-by: Mark Brown --- 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