Fixes build error: sound/soc/soc-core.c: In function 'snd_soc_component_exit_regmap': sound/soc/soc-core.c:2644:2: error: implicit declaration of function 'regmap_exit' [-Werror=implicit-function-declaration] regmap_exit(component->regmap);
Due to the other regmap functions providing appropriate stubs when !CONFIG_REGMAP, but this one is missing. Add it. Signed-off-by: Olof Johansson <o...@lixom.net> --- include/linux/regmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4419b99..a13e2bf 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -737,6 +737,8 @@ static inline struct regmap *dev_get_regmap(struct device *dev, return NULL; } +static inline void regmap_exit(struct regmap *map) { } + static inline struct device *regmap_get_device(struct regmap *map) { WARN_ONCE(1, "regmap API is disabled"); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/