diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-08-07 09:57:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-07 13:05:18 +0200 |
commit | a2a815c7be9bcd5d58f552aacbedcc3702e9a753 (patch) | |
tree | c1081d6de21efdae35134dadf76b04a40446f41d /drivers/tty/serial/8250/8250_platform.c | |
parent | dt-bindings: serial: renesas: Document RZ/G2M v3.0 (r8a774a3) scif (diff) | |
download | linux-a2a815c7be9bcd5d58f552aacbedcc3702e9a753.tar.xz linux-a2a815c7be9bcd5d58f552aacbedcc3702e9a753.zip |
serial: 8250_platform: remove ACPI_PTR() annotation
The acpi_platform_serial_table[] array is defined globally without
an #ifdef check for CONFIG_ACPI, so ACPI_PTR() makes no sense
here:
drivers/tty/serial/8250/8250_platform.c:271:36: error: 'acpi_platform_serial_table' defined but not used [-Werror=unused-const-variable=]
271 | static const struct acpi_device_id acpi_platform_serial_table[] = {
Fixes: d9e5a0ce2f16 ("serial: 8250_platform: Enable generic 16550A platform devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Link: https://lore.kernel.org/r/20240807075751.2206508-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_platform.c')
-rw-r--r-- | drivers/tty/serial/8250/8250_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c index bdfb16bed4f2..35f2e1494a5e 100644 --- a/drivers/tty/serial/8250/8250_platform.c +++ b/drivers/tty/serial/8250/8250_platform.c @@ -281,7 +281,7 @@ static struct platform_driver serial8250_isa_driver = { .resume = serial8250_resume, .driver = { .name = "serial8250", - .acpi_match_table = ACPI_PTR(acpi_platform_serial_table), + .acpi_match_table = acpi_platform_serial_table, }, }; |