mirror of https://gitee.com/openkylin/linux.git
serial: 8250_dw: remove ACPI ifdef
ACPI now provides stubs for the functions the driver uses. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
42b6a1baa3
commit
8913a316e3
|
@ -272,7 +272,6 @@ static int dw8250_probe_of(struct uart_port *p,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI
|
|
||||||
static int dw8250_probe_acpi(struct uart_8250_port *up,
|
static int dw8250_probe_acpi(struct uart_8250_port *up,
|
||||||
struct dw8250_data *data)
|
struct dw8250_data *data)
|
||||||
{
|
{
|
||||||
|
@ -300,13 +299,6 @@ static int dw8250_probe_acpi(struct uart_8250_port *up,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
static inline int dw8250_probe_acpi(struct uart_8250_port *up,
|
|
||||||
struct dw8250_data *data)
|
|
||||||
{
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_ACPI */
|
|
||||||
|
|
||||||
static int dw8250_probe(struct platform_device *pdev)
|
static int dw8250_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue