diff options
author | Kevin Hao <haokexin@gmail.com> | 2015-02-03 09:29:52 -0600 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2015-11-06 15:56:44 +0800 |
commit | 5083d26e1a10dfafbc621bf9a9749935959939a2 (patch) | |
tree | b13a375f472ff3fcdfb239ddc8843d5356e29e1e /include | |
parent | d976fe872312bc15334cb5f973232cedbe03cae1 (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>
(cherry picked from commit f0b66a2cf68ed3613fe72fe01ed309f998e2bbb3)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d3ec1cd1d3b0..afd049505484 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -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 |