Skip to content

Commit

Permalink
PCI: Add pci_device_to_OF_node() stub for !CONFIG_OF
Browse files Browse the repository at this point in the history
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: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Kevin Hao authored and Bjorn Helgaas committed Feb 3, 2015
1 parent f65d539 commit f0b66a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,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
Expand Down

0 comments on commit f0b66a2

Please sign in to comment.