]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
regmap: Remove warning on stubbed dev_get_regmap()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Jun 2012 13:29:16 +0000 (14:29 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Jun 2012 15:37:43 +0000 (16:37 +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

index f9b624c83464d42793beacba19cde613b83fa6c1..4191a42815876365fa18d27df3940c08e538af48 100644 (file)
@@ -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;
 }