diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-08-12 18:47:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-14 08:22:50 +0200 |
commit | 9136b3766635a08623f3627038533f4c093f7fa1 (patch) | |
tree | 4ab6bdd947e726c9d3f82abb1b7733ae2c63df44 | |
parent | 6586ccd7685bd1550c06ed93e3b11feab9f9d6a6 (diff) |
serial: 8250_platform: Use same check for ACPI in the whole driver
Use has_acpi_companion() as 8250_core does to unify this across
the driver modules.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240812154901.1068407-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_platform.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_platform.c b/drivers/tty/serial/8250/8250_platform.c index 5f0ea39c4af2..ec9b96fdcc41 100644 --- a/drivers/tty/serial/8250/8250_platform.c +++ b/drivers/tty/serial/8250/8250_platform.c @@ -165,14 +165,13 @@ static int serial8250_probe(struct platform_device *dev) struct plat_serial8250_port *p = dev_get_platdata(&dev->dev); struct uart_8250_port uart; int ret, i, irqflag = 0; - struct fwnode_handle *fwnode = dev_fwnode(&dev->dev); /* * Probe platform UART devices defined using standard hardware * discovery mechanism like ACPI or DT. Support only ACPI based * serial device for now. */ - if (!p && is_acpi_node(fwnode)) + if (!p && has_acpi_companion(&dev->dev)) return serial8250_platform_probe(dev); memset(&uart, 0, sizeof(uart)); |