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

Commit bd3810a5 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Remove warning on stubbed dev_get_regmap()



It's perfectly sensible to ask if there's a regmap for a device which
doesn't have one so the stubbed version shouldn't complain, the caller
should be prepared for this.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent b026ddbb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -386,7 +386,6 @@ static inline int regmap_register_patch(struct regmap *map,
static inline struct regmap *dev_get_regmap(struct device *dev,
					    const char *name)
{
	WARN_ONCE(1, "regmap API is disabled");
	return NULL;
}