Skip to content

Commit

Permalink
regmap: Fix return code for stub regmap_get_device()
Browse files Browse the repository at this point in the history
We return a pointer, not an int.

Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Jul 25, 2014
1 parent fa2fbe4 commit 1d33dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d33dc6

Please sign in to comment.