Skip to content

Commit 6d81dc3

Browse files
author
Lee Jones
committed
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 <[email protected]>
1 parent 328162a commit 6d81dc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mfd/kempld-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,13 @@ static int kempld_remove(struct platform_device *pdev)
553553
return 0;
554554
}
555555

556+
#ifdef CONFIG_ACPI
556557
static const struct acpi_device_id kempld_acpi_table[] = {
557558
{ "KEM0001", (kernel_ulong_t)&kempld_platform_data_generic },
558559
{}
559560
};
560561
MODULE_DEVICE_TABLE(acpi, kempld_acpi_table);
562+
#endif
561563

562564
static struct platform_driver kempld_driver = {
563565
.driver = {

0 commit comments

Comments
 (0)