diff options
author | 2025-02-24 15:13:53 +0100 | |
---|---|---|
committer | 2025-02-28 15:13:07 -0600 | |
commit | c5785a165f847c457bd398f496f7c108527b22bd (patch) | |
tree | 989b31d3ef4143fbf669b6afbce4a8853589eb91 /net/lapb/lapb_timer.c | |
parent | PCI: of: Use device_{add,remove}_of_node() to attach of_node to existing device (diff) | |
download | wireguard-linux-c5785a165f847c457bd398f496f7c108527b22bd.tar.xz wireguard-linux-c5785a165f847c457bd398f496f7c108527b22bd.zip |
PCI: of_property: Add support for NULL pdev in of_pci_set_address()
The pdev (pointer to a struct pci_dev) parameter of of_pci_set_address()
cannot be NULL.
In order to use of_pci_set_address() when creating the PCI root bus node,
it needs to support a NULL pdev parameter. Indeed, in the case of the PCI
root bus node creation, no pdev is available and of_pci_set_address() will
be used with the bridge windows.
Allow to call of_pci_set_address() with a NULL pdev.
Link: https://lore.kernel.org/r/20250224141356.36325-4-herve.codina@bootlin.com
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions