]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[POWERPC] Remove set_cfg_type for PCI indirect users that don't need it
authorKumar Gala <galak@kernel.crashing.org>
Thu, 21 Jun 2007 16:22:47 +0000 (11:22 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 29 Jun 2007 06:57:07 +0000 (01:57 -0500)
The Freescale and Marvell PCI controllers dont require explicit setting for
type 1 config cycles.  They handle producing them by implicitly looking at the
bus, devfn.

The TSI108 and 52xx don't use the generic PCI indirect code and thus don't
bother with set_cfg_type.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/52xx/mpc52xx_pci.c
arch/powerpc/platforms/82xx/mpc82xx_ads.c
arch/powerpc/platforms/83xx/pci.c
arch/powerpc/platforms/85xx/pci.c
arch/powerpc/platforms/86xx/pci.c
arch/powerpc/sysdev/mv64x60_pci.c
arch/powerpc/sysdev/tsi108_pci.c

index 34d34a26d30576faf647160b4334bee6e56d0327..51164c851cacd158cd5e7e67b587d6f790a2eb48 100644 (file)
@@ -390,7 +390,6 @@ mpc52xx_add_bridge(struct device_node *node)
                return -ENOMEM;
 
        hose->arch_data = node;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
index 081c0abe4f1849554af7f5149e11f16e94e04c7a..04bf57079c1e1b2604bd7825d9fb83f949aef60e 100644 (file)
@@ -548,14 +548,11 @@ static void __init mpc82xx_add_bridge(struct device_node *np)
                return;
 
        hose->arch_data = np;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
        hose->bus_offset = 0;
 
-       hose->set_cfg_type = 1;
-
        setup_indirect_pci(hose,
                           r.start + offsetof(pci_cpm2_t, pci_cfg_addr),
                           r.start + offsetof(pci_cpm2_t, pci_cfg_data));
index 1752d4577aafdbd552efd55114344c9be9fa3625..34716024ed1a0e199235379b025b503439376c93 100644 (file)
@@ -70,7 +70,6 @@ int __init mpc83xx_add_bridge(struct device_node *dev)
        if (!hose)
                return -ENOMEM;
        hose->arch_data = dev;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
index 3c38ae4b76c737a87d131214806cd76c5007bb87..72a1bc5e0c2dae681d58bcfeccbd1c8a06cce9bb 100644 (file)
@@ -61,7 +61,6 @@ int __init mpc85xx_add_bridge(struct device_node *dev)
        if (!hose)
                return -ENOMEM;
        hose->arch_data = dev;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
index c1d65fac690d332e2dcca83d583f3e870f5b0490..1e47c145d54dbd35e5c78b68516b09345c461bdd 100644 (file)
@@ -172,7 +172,6 @@ int __init mpc86xx_add_bridge(struct device_node *dev)
        if (!hose)
                return -ENOMEM;
        hose->arch_data = dev;
-       hose->set_cfg_type = 1;
 
        /* last_busno = 0xfe cause by MPC8641 PCIE bug */
        hose->first_busno = bus_range ? bus_range[0] : 0x0;
index b5aef4cbc8d21f3ef0fd160fbef4e49b5e7e1dbf..6b08e76de5a2f9c7894f67a847fa7ec7d2375646 100644 (file)
@@ -142,7 +142,6 @@ static int __init mv64x60_add_bridge(struct device_node *dev)
                return -ENOMEM;
 
        hose->arch_data = dev;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
index 2153163fa593b22643f09f2aa4b2d4a3ba1a3d55..33177b60c7ed84bd838c6adf6cfe0026453c2986 100644 (file)
@@ -226,7 +226,6 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
                return -ENOMEM;
        }
        hose->arch_data = dev;
-       hose->set_cfg_type = 1;
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;