aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2015-03-18 06:55:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 18:04:42 -0400
commit9001c07995fdd1f3657408c71bca7d6c5fb87fd3 (patch)
tree6e56966eaf940add6251ccf1dd795a18c9c6112c /drivers/tty/serial
parentad53b26cd140fbea92d79a449c8ddb8d1a6f5f26 (diff)
serial: 8250_dw: remove useless ACPI ID check
Having ACPI handle does not mean the same as having ACPI identifier. The check is in any case useless, but having it prevents this driver from being used for example with multifunctional PCI devices, such as the newer Intel LPSS devices. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_dw.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index d641886b254a..cc943fe3fd68 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -391,15 +391,10 @@ static int dw8250_probe_of(struct uart_port *p,
391static int dw8250_probe_acpi(struct uart_8250_port *up, 391static int dw8250_probe_acpi(struct uart_8250_port *up,
392 struct dw8250_data *data) 392 struct dw8250_data *data)
393{ 393{
394 const struct acpi_device_id *id;
395 struct uart_port *p = &up->port; 394 struct uart_port *p = &up->port;
396 395
397 dw8250_setup_port(up); 396 dw8250_setup_port(up);
398 397
399 id = acpi_match_device(p->dev->driver->acpi_match_table, p->dev);
400 if (!id)
401 return -ENODEV;
402
403 if (!p->uartclk) 398 if (!p->uartclk)
404 if (device_property_read_u32(p->dev, "clock-frequency", 399 if (device_property_read_u32(p->dev, "clock-frequency",
405 &p->uartclk)) 400 &p->uartclk))