Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5083d26e authored by Kevin Hao's avatar Kevin Hao Committed by Alex Shi
Browse files

PCI: Add pci_device_to_OF_node() stub for !CONFIG_OF



Add a stub for pci_device_to_OF_node() so drivers don't need to
use #ifdef CONFIG_OF around calls to it.

Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit f0b66a2cf68ed3613fe72fe01ed309f998e2bbb3)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent d976fe87
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1843,6 +1843,8 @@ static inline void pci_set_of_node(struct pci_dev *dev) { }
static inline void pci_release_of_node(struct pci_dev *dev) { }
static inline void pci_set_bus_of_node(struct pci_bus *bus) { }
static inline void pci_release_bus_of_node(struct pci_bus *bus) { }
static inline struct device_node *
pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; }
#endif  /* CONFIG_OF */

#ifdef CONFIG_EEH