diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-09-04 20:00:46 +0200 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-09-19 11:26:03 +0200 |
commit | 016b9eb0c52ed7349ffdb42b4e51c93ad1f5d90a (patch) | |
tree | 037ac3fa45de421b52c5ee4c3194422809c6b56a /arch/arm | |
parent | ARM: davinci: fix build breakage with DEBUG_LL (diff) | |
download | linux-016b9eb0c52ed7349ffdb42b4e51c93ad1f5d90a.tar.xz linux-016b9eb0c52ed7349ffdb42b4e51c93ad1f5d90a.zip |
ARM: davinci: dm365 evm: fix unused variable warning
If neither CONFIG_SND_DM365_AIC3X_CODEC nor CONFIG_SND_DM365_VOICE_CODEC
are defined, we may get warnings like:
arch/arm/mach-davinci/board-dm365-evm.c:179:33: warning: 'dm365_evm_snd_data' defined but not used [-Wunused-variable]
To fix this, just mark the struct as __maybe_unused.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-davinci/board-dm365-evm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index 92b7f770615a..4078ba93776b 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -176,7 +176,7 @@ static struct at24_platform_data eeprom_info = { .context = (void *)0x7f00, }; -static struct snd_platform_data dm365_evm_snd_data = { +static struct snd_platform_data dm365_evm_snd_data __maybe_unused = { .asp_chan_q = EVENTQ_3, }; |