summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-10-02 07:56:18 +0100
committerLee Jones <lee.jones@linaro.org>2020-10-05 09:11:40 +0100
commit6d81dc3c79d46b66b29712eb1ac5ad2cbe4231d2 (patch)
tree224af177c75d7cfde8efc6b124de6fe59f70dd4d /drivers
parent328162a8824cfefe4f891200bc77c0bf3e7fe5ff (diff)
downloadlinux-6d81dc3c79d46b66b29712eb1ac5ad2cbe4231d2.tar.bz2
mfd: kempld-core: Fix unused variable 'kempld_acpi_table' when !ACPI
drivers/mfd/kempld-core.c:556:36: warning: unused variable 'kempld_acpi_table' [-Wunused-const-variable] Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/kempld-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c
index 1dfe556df038..2c9295953c11 100644
--- a/drivers/mfd/kempld-core.c
+++ b/drivers/mfd/kempld-core.c
@@ -553,11 +553,13 @@ static int kempld_remove(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_ACPI
static const struct acpi_device_id kempld_acpi_table[] = {
{ "KEM0001", (kernel_ulong_t)&kempld_platform_data_generic },
{}
};
MODULE_DEVICE_TABLE(acpi, kempld_acpi_table);
+#endif
static struct platform_driver kempld_driver = {
.driver = {