diff options
author | Mark Brown <broonie@linaro.org> | 2014-07-25 19:01:53 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-25 19:01:53 +0100 |
commit | 1d33dc6b0f0fd1a1f65011f54165c558daf46638 (patch) | |
tree | 82f8b45f2906c8abd6791e5b78287bbe05117568 /include/linux/regmap.h | |
parent | fa2fbe4a981a70866d20cee62af0d89eb6b6027e (diff) | |
download | op-kernel-dev-1d33dc6b0f0fd1a1f65011f54165c558daf46638.zip op-kernel-dev-1d33dc6b0f0fd1a1f65011f54165c558daf46638.tar.gz |
regmap: Fix return code for stub regmap_get_device()
We return a pointer, not an int.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index cd480fd..c5ed83f 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 |