summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-07-25 20:01:53 +0200
committerMark Brown <broonie@linaro.org>2014-07-25 20:01:53 +0200
commit1d33dc6b0f0fd1a1f65011f54165c558daf46638 (patch)
tree82f8b45f2906c8abd6791e5b78287bbe05117568 /include
parentregmap: Allow regmap_get_device() to be used by modules (diff)
downloadlinux-1d33dc6b0f0fd1a1f65011f54165c558daf46638.tar.xz
linux-1d33dc6b0f0fd1a1f65011f54165c558daf46638.zip
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')
-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,
static inline struct device *regmap_get_device(struct regmap *map)
{
WARN_ONCE(1, "regmap API is disabled");
- return -EINVAL;
+ return NULL;
}
#endif