aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-02-03 10:29:52 -0500
committerBjorn Helgaas <bhelgaas@google.com>2015-02-03 10:29:52 -0500
commitf0b66a2cf68ed3613fe72fe01ed309f998e2bbb3 (patch)
treefdf72f73811699393465dd31be8b528be29c914e
parentf65d539c6fb4de92df4d3c8a49b9ac3fd8d17f18 (diff)
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: Kevin Hao <haokexin@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--include/linux/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 360a966a97a5..fbb5795a8d86 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1847,6 +1847,8 @@ static inline void pci_set_of_node(struct pci_dev *dev) { }
1847static inline void pci_release_of_node(struct pci_dev *dev) { } 1847static inline void pci_release_of_node(struct pci_dev *dev) { }
1848static inline void pci_set_bus_of_node(struct pci_bus *bus) { } 1848static inline void pci_set_bus_of_node(struct pci_bus *bus) { }
1849static inline void pci_release_bus_of_node(struct pci_bus *bus) { } 1849static inline void pci_release_bus_of_node(struct pci_bus *bus) { }
1850static inline struct device_node *
1851pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; }
1850#endif /* CONFIG_OF */ 1852#endif /* CONFIG_OF */
1851 1853
1852#ifdef CONFIG_EEH 1854#ifdef CONFIG_EEH