* [PATCH 1/1] mfd: kempld-core: Fix unused variable 'kempld_acpi_table' when !ACPI
@ 2020-10-02 8:36 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2020-10-02 8:36 UTC (permalink / raw)
To: lee.jones; +Cc: linux-arm-kernel, linux-kernel, Michael.Brunner
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>
---
drivers/mfd/kempld-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c
index 1dfe556df0385..2c9295953c11e 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 = {
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] mfd: kempld-core: Fix unused variable 'kempld_acpi_table' when !ACPI
@ 2020-10-02 8:36 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2020-10-02 8:36 UTC (permalink / raw)
To: lee.jones; +Cc: Michael.Brunner, linux-kernel, linux-arm-kernel
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>
---
drivers/mfd/kempld-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c
index 1dfe556df0385..2c9295953c11e 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 = {
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-02 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 8:36 [PATCH 1/1] mfd: kempld-core: Fix unused variable 'kempld_acpi_table' when !ACPI Lee Jones
2020-10-02 8:36 ` Lee Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.