Skip to content

Commit dffa58b

Browse files
krzkgregkh
authored andcommitted
serial: 8250_tegra: mark acpi_device_id as unused with !ACPI
The driver's acpi_device_id table is referenced via ACPI_PTR() so it will be unused for !CONFIG_ACPI builds: drivers/tty/serial/8250/8250_tegra.c:178:36: warning: ‘tegra_uart_acpi_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0dc0da8 commit dffa58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static const struct of_device_id tegra_uart_of_match[] = {
175175
};
176176
MODULE_DEVICE_TABLE(of, tegra_uart_of_match);
177177

178-
static const struct acpi_device_id tegra_uart_acpi_match[] = {
178+
static const struct acpi_device_id tegra_uart_acpi_match[] __maybe_unused = {
179179
{ "NVDA0100", 0 },
180180
{ },
181181
};

0 commit comments

Comments
 (0)