diff options
Diffstat (limited to 'arch/frv')
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-vdk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/frv/mb93090-mb00/pci-vdk.c b/arch/frv/mb93090-mb00/pci-vdk.c index b073f4d771a5..f211839e2cae 100644 --- a/arch/frv/mb93090-mb00/pci-vdk.c +++ b/arch/frv/mb93090-mb00/pci-vdk.c | |||
| @@ -316,6 +316,7 @@ void pcibios_fixup_bus(struct pci_bus *bus) | |||
| 316 | 316 | ||
| 317 | int __init pcibios_init(void) | 317 | int __init pcibios_init(void) |
| 318 | { | 318 | { |
| 319 | struct pci_bus *bus; | ||
| 319 | struct pci_ops *dir = NULL; | 320 | struct pci_ops *dir = NULL; |
| 320 | LIST_HEAD(resources); | 321 | LIST_HEAD(resources); |
| 321 | 322 | ||
| @@ -383,12 +384,15 @@ int __init pcibios_init(void) | |||
| 383 | printk("PCI: Probing PCI hardware\n"); | 384 | printk("PCI: Probing PCI hardware\n"); |
| 384 | pci_add_resource(&resources, &pci_ioport_resource); | 385 | pci_add_resource(&resources, &pci_ioport_resource); |
| 385 | pci_add_resource(&resources, &pci_iomem_resource); | 386 | pci_add_resource(&resources, &pci_iomem_resource); |
| 386 | pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, &resources); | 387 | bus = pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, &resources); |
| 387 | 388 | ||
| 388 | pcibios_irq_init(); | 389 | pcibios_irq_init(); |
| 389 | pcibios_fixup_irqs(); | 390 | pcibios_fixup_irqs(); |
| 390 | pcibios_resource_survey(); | 391 | pcibios_resource_survey(); |
| 392 | if (!bus) | ||
| 393 | return 0; | ||
| 391 | 394 | ||
| 395 | pci_bus_add_devices(bus); | ||
| 392 | return 0; | 396 | return 0; |
| 393 | } | 397 | } |
| 394 | 398 | ||
