浏览代码

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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown 13 年之前
父节点
当前提交
bd3810a58b
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      include/linux/regmap.h

+ 0 - 1
include/linux/regmap.h

@@ -386,7 +386,6 @@ static inline int regmap_register_patch(struct regmap *map,
 static inline struct regmap *dev_get_regmap(struct device *dev,
 static inline struct regmap *dev_get_regmap(struct device *dev,
 					    const char *name)
 					    const char *name)
 {
 {
-	WARN_ONCE(1, "regmap API is disabled");
 	return NULL;
 	return NULL;
 }
 }