diff options
author | YueHaibing <[email protected]> | 2020-04-01 17:10:55 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-04-01 12:06:28 +0100 |
commit | 59564e117356d5bb6df6876c03d7d650361781c9 (patch) | |
tree | 0a8924dc11cefb099844e67401d5577ac4b77571 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 21fca8bdbb64df1297e8c65a746c4c9f4a689751 (diff) |
ASoC: rt5682: Fix build error without CONFIG_I2C
If I2C is n but SoundWire is m, building fails:
sound/soc/codecs/rt5682.c:3716:1: warning: data definition has no type or storage class
module_i2c_driver(rt5682_i2c_driver);
^~~~~~~~~~~~~~~~~
sound/soc/codecs/rt5682.c:3716:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
sound/soc/codecs/rt5682.c:3716:1: warning: parameter names (without types) in function declaration
Guard this use #ifdef CONFIG_I2C.
Fixes: 5549ea647997 ("ASoC: rt5682: fix unmet dependencies")
Signed-off-by: YueHaibing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions