aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-13 14:29:16 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-13 16:37:43 +0100
commitbd3810a58ba9c16702450c643ea3c557668185db (patch)
tree36f48d8f47afb10d0c89991c0a053c8191575db6 /include/linux/regmap.h
parentb026ddbbd25e3560c8d69beb96a5980d96c59b43 (diff)
downloadkernel_goldelico_gta04-bd3810a58ba9c16702450c643ea3c557668185db.zip
kernel_goldelico_gta04-bd3810a58ba9c16702450c643ea3c557668185db.tar.gz
kernel_goldelico_gta04-bd3810a58ba9c16702450c643ea3c557668185db.tar.bz2
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>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index f9b624c..4191a42 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;
}