Skip to content

Commit 9136b37

Browse files
andy-shevgregkh
authored andcommitted
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>
1 parent 6586ccd commit 9136b37

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/tty/serial/8250/8250_platform.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,13 @@ static int serial8250_probe(struct platform_device *dev)
165165
struct plat_serial8250_port *p = dev_get_platdata(&dev->dev);
166166
struct uart_8250_port uart;
167167
int ret, i, irqflag = 0;
168-
struct fwnode_handle *fwnode = dev_fwnode(&dev->dev);
169168

170169
/*
171170
* Probe platform UART devices defined using standard hardware
172171
* discovery mechanism like ACPI or DT. Support only ACPI based
173172
* serial device for now.
174173
*/
175-
if (!p && is_acpi_node(fwnode))
174+
if (!p && has_acpi_companion(&dev->dev))
176175
return serial8250_platform_probe(dev);
177176

178177
memset(&uart, 0, sizeof(uart));

0 commit comments

Comments
 (0)