regmap: Remove warning on stubbed dev_get_regmap()
PATCH 1/1 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 <[email protected]>
--- include/linux/regmap.h | 1 - 1 file changed, 1 deletion(-)
include/linux/regmap.h +0 -1
@@ -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 ; }
Signature · 1 line
1.7.10
Quoted 14 lines · Mark Brown
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<[email protected]>--- include/linux/regmap.h | 1 - 1 file changed, 1 deletion(-)include/linux/regmap.h +0
-0
include/linux/regmap.h static inline int regmap_register_patch(struct regmap *map, · line 392
Quoted 6 lines
include/linux/regmap.h +0
-1@@ -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 ; }
Thanks Mark.
Reported-by Lee Jones <[email protected]>
Tested-by Lee Jones <[email protected]>
Signature · 5 lines
Lee Jones Linaro ST-Ericsson Landing Team Lead M: +44 77 88 633 515 Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 5 lines · Mark Brown
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 <[email protected]>
Tested-by Fabio Estevam <[email protected]>
Thanks,
Fabio Estevam