ASoC: da7219: Fix build error without CONFIG_I2C
authorYueHaibing <yuehaibing@huawei.com>
Sat, 1 Jun 2019 08:51:44 +0000 (16:51 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 4 Jun 2019 14:30:39 +0000 (15:30 +0100)
commitcbc0fa7b6e8c6180c18fd951d28197281a526330
tree5e359c6f43606a19b1927a71bf615b539fea79c8
parentad169f9f0dbb531cd68db921b351ccafcf684ae4
ASoC: da7219: Fix build error without CONFIG_I2C

Fix gcc build error while CONFIG_I2C is not set

sound/soc/codecs/da7219.c:2640:1: warning: data definition has no type or storage class
 module_i2c_driver(da7219_i2c_driver);
 ^~~~~~~~~~~~~~~~~
sound/soc/codecs/da7219.c:2640:1: error: type defaults to int in declaration of module_i2c_driver [-Werror=implicit-int]
sound/soc/codecs/da7219.c:2640:1: warning: parameter names (without types) in function declaration
sound/soc/codecs/da7219.c:2629:26: warning: da7219_i2c_driver defined but not used [-Wunused-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 6d817c0e9fd7 ("ASoC: codecs: Add da7219 codec driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/Kconfig