Commit 053fac36 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman

serial: 8250_dw: Use ifdef with ACPI

There are no stubs for ACPI functions so the driver needs to
have this ifdef or it will not compile without ACPI.
Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3b0397f
......@@ -145,6 +145,7 @@ static int dw8250_probe_of(struct uart_port *p)
return 0;
}
#ifdef CONFIG_ACPI
static bool dw8250_acpi_dma_filter(struct dma_chan *chan, void *parm)
{
return chan->chan_id == *(int *)parm;
......@@ -231,6 +232,12 @@ static int dw8250_probe_acpi(struct uart_port *p)
return 0;
}
#else
static inline int dw8250_probe_acpi(struct uart_port *p)
{
return -ENODEV;
}
#endif /* CONFIG_ACPI */
static void dw8250_setup_port(struct uart_8250_port *up)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment