@@ -123,16 +123,13 @@ static int __init add_bus_probe(void)
module_init(add_bus_probe);
#ifdef CONFIG_PCI
-struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus)
+struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
{
struct device_node *np;
- unsigned int bus_min;
for_each_node_by_type(np, "pci") {
const void *prop;
- struct pci_bus *bus;
unsigned int bus_min;
- struct device_node *child;
prop = of_get_property(np, "bus-range", NULL);
if (!prop)
@@ -141,6 +138,7 @@ struct device_node * pcibios_get_phb_of_node(struct pci_bus *bus)
if (bus->number == bus_min)
return np;
}
+ return NULL;
}
static int x86_of_pci_irq_enable(struct pci_dev *dev)