Message ID | 20240807062839.1738705-1-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers | show |
Series | serial: 8250_platform: Fix unused acpi_platform_serial_table warning | expand |
diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c index bdfb16bed4f2..168e635002aa 100644 --- a/drivers/tty/serial/8250/8250_platform.c +++ b/drivers/tty/serial/8250/8250_platform.c @@ -268,11 +268,13 @@ static int serial8250_resume(struct platform_device *dev) return 0; } +#ifdef CONFIG_ACPI static const struct acpi_device_id acpi_platform_serial_table[] = { { "RSCV0003", 0 }, // RISC-V Generic 16550A UART { }, }; MODULE_DEVICE_TABLE(acpi, acpi_platform_serial_table); +#endif static struct platform_driver serial8250_isa_driver = { .probe = serial8250_probe,