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>
This commit is contained in:
Randy Dunlap 2014-10-31 10:54:23 -07:00 коммит произвёл Mark Brown
Родитель 4e44923847
Коммит e894beb818
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -337,6 +337,7 @@ config SND_SOC_CS42L51
config SND_SOC_CS42L51_I2C
tristate "Cirrus Logic CS42L51 CODEC (I2C)"
depends on I2C
select SND_SOC_CS42L51
config SND_SOC_CS42L52