Skip to content

Commit

Permalink
serial: 8250_dw: Use ifdef with ACPI
Browse files Browse the repository at this point in the history
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: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Heikki Krogerus authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent a3b0397 commit 053fac3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/tty/serial/8250/8250_dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 053fac3

Please sign in to comment.