diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2014-10-31 13:54:23 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-31 15:25:38 -0400 |
commit | e894beb8183dd9e3834983440900ceb632823676 (patch) | |
tree | f055de921f0239c8c06e671fb3e16d7b409d3122 /sound/soc/codecs/Kconfig | |
parent | 4e44923847b0b2597eaef07d5e700f5dbed2162e (diff) |
ASoC: cs42l51: depends on I2C
Fix build errors when CONFIG_I2C is not enabled by making the
driver depend on I2C.
../sound/soc/codecs/cs42l51-i2c.c:55:1: warning: data definition has no type or storage class [enabled by default]
module_i2c_driver(cs42l51_i2c_driver);
^
../sound/soc/codecs/cs42l51-i2c.c:55:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
../sound/soc/codecs/cs42l51-i2c.c:55:1: warning: parameter names (without types) in function declaration [enabled by default]
../sound/soc/codecs/cs42l51-i2c.c:45:26: warning: 'cs42l51_i2c_driver' defined but not used [-Wunused-variable]
static struct i2c_driver cs42l51_i2c_driver = {
^
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/Kconfig')
-rw-r--r-- | sound/soc/codecs/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index f4fb12fab166..02a36b0b7f54 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig | |||
@@ -337,6 +337,7 @@ config SND_SOC_CS42L51 | |||
337 | 337 | ||
338 | config SND_SOC_CS42L51_I2C | 338 | config SND_SOC_CS42L51_I2C |
339 | tristate "Cirrus Logic CS42L51 CODEC (I2C)" | 339 | tristate "Cirrus Logic CS42L51 CODEC (I2C)" |
340 | depends on I2C | ||
340 | select SND_SOC_CS42L51 | 341 | select SND_SOC_CS42L51 |
341 | 342 | ||
342 | config SND_SOC_CS42L52 | 343 | config SND_SOC_CS42L52 |