]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: max98988: add I2C dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 Oct 2018 08:37:13 +0000 (10:37 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 10 Oct 2018 12:27:46 +0000 (13:27 +0100)
commit5055e845d863f2cbea60d19a5cce3cf8d12627b7
treee48e73a3b47648c8cda81a824b5b9bdc22895dd4
parente3421af6b616fd7b04e9b2e8698ea5f6c6c1721b
ASoC: max98988: add I2C dependency

max98988 only builds with I2C support enabled, otherwise we get a build error:

sound/soc/codecs/max98088.c:1789:1: error: data definition has no type or storage class [-Werror]
 module_i2c_driver(max98088_i2c_driver);
 ^~~~~~~~~~~~~~~~~
sound/soc/codecs/max98088.c:1789:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
sound/soc/codecs/max98088.c:1789:1: error: parameter names (without types) in function declaration [-Werror]
sound/soc/codecs/max98088.c:1780:26: error: 'max98088_i2c_driver' defined but not used [-Werror=unused-variable]

Fixes: e3421af6b616 ("ASoC: max98988: make it selectable")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig