aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_pci.h')
-rw-r--r--include/linux/of_pci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h
index 2c51ee78b1c0..f6e9e85164e8 100644
--- a/include/linux/of_pci.h
+++ b/include/linux/of_pci.h
@@ -59,6 +59,13 @@ static inline void of_pci_check_probe_only(void) { }
59int of_pci_get_host_bridge_resources(struct device_node *dev, 59int of_pci_get_host_bridge_resources(struct device_node *dev,
60 unsigned char busno, unsigned char bus_max, 60 unsigned char busno, unsigned char bus_max,
61 struct list_head *resources, resource_size_t *io_base); 61 struct list_head *resources, resource_size_t *io_base);
62#else
63static inline int of_pci_get_host_bridge_resources(struct device_node *dev,
64 unsigned char busno, unsigned char bus_max,
65 struct list_head *resources, resource_size_t *io_base)
66{
67 return -EINVAL;
68}
62#endif 69#endif
63 70
64#if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI) 71#if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI)