Messages in this thread Patch in this message |  | | | From | Mark Brown <> | | Subject | [PATCH] regmap: Remove warning on stubbed dev_get_regmap() | | Date | Wed, 13 Jun 2012 14:38:56 +0100 |
| |
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: Mark Brown <broonie@opensource.wolfsonmicro.com> --- include/linux/regmap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4c9e642..c3508d0 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -388,7 +388,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; } -- 1.7.10
|  |