]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5640: Omit ACPI match table only if !ACPI
authorThierry Reding <thierry.reding@gmail.com>
Thu, 19 Sep 2013 09:18:06 +0000 (11:18 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 19 Sep 2013 10:41:03 +0000 (11:41 +0100)
commit8f8bf6fc9de3c8a035712ba1a9b09eda466ebe12
treef398db1c4680891c8b7b6b8bea372e3623b9f82a
parent20e176333f8d9cd53fb1545f8bb82571188ce72d
ASoC: rt5640: Omit ACPI match table only if !ACPI

The ACPI_PTR() macro evaluates to NULL if ACPI is disabled and hence the
ACPI match table won't be used, causing the compiler to complain. Avoid
this by protecting the table using an #ifdef CONFIG_ACPI.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5640.c