Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d33dc6b authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Fix return code for stub regmap_get_device()



We return a pointer, not an int.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent fa2fbe4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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