summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-20 14:46:24 +0300
committerMark Brown <broonie@kernel.org>2016-01-21 14:26:31 +0300
commit2256b8d2ff6c8e994161ab15b6e6d0314d3174ae (patch)
tree321d25358692a1f2edde5a8f165c5bd1ddeec5e1 /scripts
parent1ca2cf8c4167c2016d9716998b4f89c4e79d1f89 (diff)
downloadlinux-2256b8d2ff6c8e994161ab15b6e6d0314d3174ae.tar.xz
ASoC: rt5659: avoid unused variable warning for rt5659_acpi_match
The newly added rt5659 codec driver unconditionally defines an ACPI device match table but then uses ACPI_PTR() to remove the only reference to it, so we get a harmless build warning: sound/soc/codecs/rt5659.c:4200:30: warning: 'rt5659_acpi_match' defined but not used [-Wunused-variable] static struct acpi_device_id rt5659_acpi_match[] = { This changes both the OF match table and the ACPI match table to follow the same style, using ACPI_PTR/of_match_ptr to make the reference conditional, and using an #ifdef to hide the table. This also adds the missing MODULE_DEVICE_TABLE for the OF case and adapts the formatting to the same style. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions