ASoC: soc-io: Fix CONFIG_REGMAP_I2C/SPI guards to support regmap modules
authorStephen Warren <swarren@nvidia.com>
Thu, 11 Aug 2011 17:59:11 +0000 (11:59 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 12 Aug 2011 02:51:42 +0000 (11:51 +0900)
commit81bca7624db4720db686fa38435c39ea95b7be8f
tree0fa1f2f9363d85a2ef49703968a4a1a8207eb1df
parent68d5a59e0ceb69fe8e4123666d9398c3c1331d8a
ASoC: soc-io: Fix CONFIG_REGMAP_I2C/SPI guards to support regmap modules

When CONFIG_REGMAP_I2C/SPI are m, CONFIG_REGMAP_I2C_MODULE is set in the
pre-processor instead of CONFIG_REGMAP_I2C. This removes SND_SOC_I2C as a
valid option for snd_soc_codec_set_cache_io()'s control parameter, and
causes any ASoC regmap-using codec built as a module to fail to initialize.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-io.c