Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'pci/gabor-get-of-node' into next

* pci/gabor-get-of-node:
MIPS/PCI: Implement pcibios_get_phb_of_node
PCI: Remove __weak annotation from pcibios_get_phb_of_node decl

+8 -2
+7 -1
arch/mips/pci/pci.c
··· 115 115 pci_bus_assign_resources(bus); 116 116 pci_enable_bridges(bus); 117 117 } 118 - bus->dev.of_node = hose->of_node; 119 118 } 120 119 } 121 120 ··· 167 168 res->child = NULL; 168 169 } 169 170 } 171 + } 172 + 173 + struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) 174 + { 175 + struct pci_controller *hose = bus->sysdata; 176 + 177 + return of_node_get(hose->of_node); 170 178 } 171 179 #endif 172 180
+1 -1
include/linux/pci.h
··· 1838 1838 extern void pci_release_bus_of_node(struct pci_bus *bus); 1839 1839 1840 1840 /* Arch may override this (weak) */ 1841 - extern struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus); 1841 + extern struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus); 1842 1842 1843 1843 static inline struct device_node * 1844 1844 pci_device_to_OF_node(const struct pci_dev *pdev)