ASoC: Disable regmap helpers if regmap is disabled
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 25 Nov 2014 20:41:03 +0000 (21:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 25 Nov 2014 21:15:31 +0000 (21:15 +0000)
commite874bf5f7647a9fdf14d72dbb376ec95327e3a81
tree04af5f68f35c1fbb306a8a0b67b8f9a8ef6b67e4
parent17bb577328a00e7251c8e552471b6583173ca77d
ASoC: Disable regmap helpers if regmap is disabled

If regmap is disabled there will be no users of the ASoC regmap helpers.
Furthermore regmap_exit() will no be defined causing the following compile
error:
sound/soc/soc-core.c: In function 'snd_soc_component_exit_regmap':
sound/soc/soc-core.c:2645:2: error: implicit declaration of function
'regmap_exit' [-Werror=implicit-function-declaration]

So disable the helpers if regmap is disabled.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 20feb881988c ASoC: Add helper functions for deferred regmap setup")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c