arm/PCI: convert to pci_scan_root_bus() for correct root bus resources
Convert from pci_scan_bus() to pci_scan_root_bus() and remove root bus resource fixups. This fixes the problem of "early" and "header" quirks seeing incorrect root bus resources. CC: Russell King <linux@arm.linux.org.uk> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
a2f33da11a
commit
37d15909ff
@@ -299,8 +299,8 @@ int __init it8152_pci_setup(int nr, struct pci_sys_data *sys)
|
||||
goto err1;
|
||||
}
|
||||
|
||||
sys->resource[0] = &it8152_io;
|
||||
sys->resource[1] = &it8152_mem;
|
||||
pci_add_resource(&sys->resources, &it8152_io);
|
||||
pci_add_resource(&sys->resources, &it8152_mem);
|
||||
|
||||
if (platform_notify || platform_notify_remove) {
|
||||
printk(KERN_ERR "PCI: Can't use platform_notify\n");
|
||||
@@ -355,7 +355,7 @@ void pcibios_set_master(struct pci_dev *dev)
|
||||
|
||||
struct pci_bus * __init it8152_pci_scan_bus(int nr, struct pci_sys_data *sys)
|
||||
{
|
||||
return pci_scan_bus(nr, &it8152_ops, sys);
|
||||
return pci_scan_root_bus(NULL, nr, &it8152_ops, sys, &sys->resources);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(dma_set_coherent_mask);
|
||||
|
@@ -86,7 +86,8 @@ int __init via82c505_setup(int nr, struct pci_sys_data *sys)
|
||||
struct pci_bus * __init via82c505_scan_bus(int nr, struct pci_sys_data *sysdata)
|
||||
{
|
||||
if (nr == 0)
|
||||
return pci_scan_bus(0, &via82c505_ops, sysdata);
|
||||
return pci_scan_root_bus(NULL, 0, &via82c505_ops, sysdata,
|
||||
&sysdata->resources);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user