]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/common/it8152.c
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[karo-tx-linux.git] / arch / arm / common / it8152.c
index b539ec855e1a60180cbc519f7b23125338141720..d1bcd7b13ebc963c195fc88064fed9191984b4fe 100644 (file)
@@ -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");
@@ -327,6 +327,9 @@ err0:
  */
 unsigned int pcibios_max_latency = 255;
 
+/* ITE bridge requires setting latency timer to avoid early bus access
+   termination by PCI bus master devices
+*/
 void pcibios_set_master(struct pci_dev *dev)
 {
        u8 lat;
@@ -352,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);