serial: 8250_exar: Use generic function to set firmware node
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Feb 2024 15:05:00 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Mar 2024 20:52:06 +0000 (21:52 +0100)
Use generic function to set firmware node instead of ACPI specific one.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240219150627.2101198-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c

index 9ab30d974e293369e17134fb3fe64c02905e2d39..cf3cd569c395fb9ac02b00e278ad4696b9b5d9e4 100644 (file)
@@ -6,12 +6,12 @@
  *
  *  Copyright (C) 2017 Sudip Mukherjee, All Rights Reserved.
  */
-#include <linux/acpi.h>
 #include <linux/dmi.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/pci.h>
+#include <linux/platform_device.h>
 #include <linux/property.h>
 #include <linux/serial_core.h>
 #include <linux/serial_reg.h>
@@ -375,7 +375,7 @@ static struct platform_device *__xr17v35x_register_gpio(struct pci_dev *pcidev,
                return NULL;
 
        pdev->dev.parent = &pcidev->dev;
-       ACPI_COMPANION_SET(&pdev->dev, ACPI_COMPANION(&pcidev->dev));
+       device_set_node(&pdev->dev, dev_fwnode(&pcidev->dev));
 
        if (device_add_software_node(&pdev->dev, node) < 0 ||
            platform_device_add(pdev) < 0) {