From: Mark Brown Date: Wed, 13 Jun 2012 13:29:16 +0000 (+0100) Subject: regmap: Remove warning on stubbed dev_get_regmap() X-Git-Tag: v3.6-rc1~158^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bd3810a58ba9c16702450c643ea3c557668185db;p=~emulex%2Finfiniband.git 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 --- diff --git a/include/linux/regmap.h b/include/linux/regmap.h index f9b624c8346..4191a428158 100644 --- a/include/linux/regmap.h +++ b/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, const char *name) { - WARN_ONCE(1, "regmap API is disabled"); return NULL; }