]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
ASoC: Intel: don't select RT5640 if !I2C
authorStephen Warren <swarren@nvidia.com>
Mon, 10 Mar 2014 16:38:40 +0000 (10:38 -0600)
committerMark Brown <broonie@linaro.org>
Thu, 13 Mar 2014 09:45:09 +0000 (09:45 +0000)
commitf410d5c953cf3c11629f138c5a2c3d3f40c61b5d
tree7dec64c72408807962249d2faf1a65a45cf0ddc0
parenta8282136a1b811edb95b3c0e1d9664510afaa307
ASoC: Intel: don't select RT5640 if !I2C

The rt5640 driver won't compile without I2C enabled. Hence, the Intel
Haswell and Baytrail+RT5640 ASoC drivers must also depend on I2C, since
these select RT5640.

This solves:
sound/soc/codecs/rt5640.c:2220:1: warning: data definition has no type or storage class [enabled by default]
sound/soc/codecs/rt5640.c:2220:1: error: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Werror=implicit-int]
sound/soc/codecs/rt5640.c:2220:1: warning: parameter names (without types) in function declaration [enabled by default]
sound/soc/codecs/rt5640.c:2210:26: warning: ‘rt5640_i2c_driver’ defined but not used [-Wunused-variable]

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/Kconfig