PCI: of: Propagate firmware node by calling device_set_node()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Apr 2023 10:09:39 +0000 (13:09 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 6 Jun 2023 22:15:45 +0000 (17:15 -0500)
commitc6f54cf44c3d05510f8f292a1782105c087797ba
tree9d39ec5962fb78f609c23db17b458bf15d27f14f
parent0b3dee602abf4a102a7a506d4b1c765355b27685
PCI: of: Propagate firmware node by calling device_set_node()

Insulate pci_set_of_node() and pci_set_bus_of_node() from possible
changes to fwnode_handle implementation by using device_set_node()
instead of open-coding dev->dev.fwnode assignments.

Link: https://lore.kernel.org/r/20230421100939.68225-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/of.c