ASoC: Intel: Add I2C dependency to two new machines
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 18 Dec 2014 14:40:35 +0000 (16:40 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2014 12:35:37 +0000 (12:35 +0000)
commitda042e3a6261a444868b99bece98e4e5b77a0fce
treefa6275dbfa783da9d2a704c679574876ea461c06
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: Intel: Add I2C dependency to two new machines

Fix following build error when CONFIG_I2C is not enabled:

sound/soc/codecs/rt5640.c:2252:1: warning: data definition has no type or storage class
 module_i2c_driver(rt5640_i2c_driver);
 ^
sound/soc/codecs/rt5640.c:2252:1: error: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Werror=implicit-int]
sound/soc/codecs/rt5640.c:2252:1: warning: parameter names (without types) in function declaration
sound/soc/codecs/rt5640.c:2241:26: warning: ‘rt5640_i2c_driver’ defined but not used [-Wunused-variable]
 static struct i2c_driver rt5640_i2c_driver = {
                          ^
cc1: some warnings being treated as errors

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/Kconfig