History

PCI: Move DT resource setup into devm_pci_alloc_host_bridge()

Now that pci_parse_request_of_pci_ranges() callers just setup pci_host_bridge.windows and dma_ranges directly and don't need the bus range returned, we can just initialize them when allocating the pci_host_bridge struct. With this, pci_parse_request_of_pci_ranges() becomes a static function.

Rob Herring committed 6 years ago

Commit 669cbc71 parent 4a9575624 files · +36 −155Browse files

Showing the changes to include/linux (1 of 24 files). Show all

Unified · Split

include/linux/pci.h+0−12
@@ -2303,10 +2303,6 @@ int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, · 2302 unmodified lines
23032303 struct device_node;
23042304 struct irq_domain;
23052305 struct irq_domain *pci_host_bridge_of_msi_domain(struct pci_bus *bus);
2306−int pci_parse_request_of_pci_ranges(struct device *dev,
2307− struct list_head *resources,
2308− struct list_head *ib_resources,
2309− struct resource **bus_range);
23102306
23112307 /* Arch may override this (weak) */
23122308 struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus);
@@ -2314,14 +2310,6 @@ struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus); · 1 unmodified line
23142310 #else /* CONFIG_OF */
23152311 static inline struct irq_domain *
23162312 pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; }
2317−static inline int
2318−pci_parse_request_of_pci_ranges(struct device *dev,
2319− struct list_head *resources,
2320− struct list_head *ib_resources,
2321− struct resource **bus_range)
2322−{
2323− return -EINVAL;
2324−}
23252313 #endif /* CONFIG_OF */
23262314
23272315 static inline struct device_node *