[SPARC64]: Kill pbm->pci_first_slot.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 9 Mar 2007 07:06:39 +0000 (23:06 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:55:17 +0000 (01:55 -0700)
Set but never used.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/of_device.c
arch/sparc64/kernel/pci_psycho.c
arch/sparc64/kernel/pci_sabre.c
arch/sparc64/kernel/pci_schizo.c
arch/sparc64/kernel/pci_sun4v.c
include/asm-sparc64/pbm.h

index 8964eacb00489ec4e2ba72284ab37b5f81d28afb..f18eec6ad6912db75e6cc20d703ef84f09ccfd77 100644 (file)
@@ -759,12 +759,6 @@ static unsigned int __init pci_irq_swizzle(struct device_node *dp,
                 * D: 2-bit slot number, derived from PCI device number as
                 *    (dev - 1) for bus A, or (dev - 2) for bus B
                 * L: 2-bit line number
-                *
-                * Actually, more "portable" way to calculate the funky
-                * slot number is to subtract pbm->pci_first_slot from the
-                * device number, and that's exactly what the pre-OF
-                * sparc64 code did, but we're building this stuff generically
-                * using the OBP tree, not in the PCI controller layer.
                 */
                if (bus & 0x80) {
                        /* PBM-A */
index 0ab2aa0261cea60c06ed967da54dfbb5c0636b20..2e5d40a26dbd174a1542c2e91c14c8f088e72da8 100644 (file)
@@ -1085,13 +1085,10 @@ static void psycho_pbm_init(struct pci_controller_info *p,
        struct property *prop;
        struct pci_pbm_info *pbm;
 
-       if (is_pbm_a) {
+       if (is_pbm_a)
                pbm = &p->pbm_A;
-               pbm->pci_first_slot = 1;
-       } else {
+       else
                pbm = &p->pbm_B;
-               pbm->pci_first_slot = 2;
-       }
 
        pbm->chip_type = PBM_CHIP_TYPE_PSYCHO;
        pbm->chip_version = 0;
index cef81c88548ade9d686e693482a7d2e2b31ce321..1bd7fc7c05e6aa60794cfa97433fa083b6a9a4a3 100644 (file)
@@ -995,7 +995,6 @@ static void sabre_pbm_init(struct pci_controller_info *p, struct device_node *dp
        pbm->chip_type = PBM_CHIP_TYPE_SABRE;
        pbm->parent = p;
        pbm->prom_node = dp;
-       pbm->pci_first_slot = 1;
        pbm->pci_first_busno = p->pci_first_busno;
        pbm->pci_last_busno = p->pci_last_busno;
 
index 99912db4e7e891b8367bdb0506bd5ed23aabb61d..f1f105af8d3c50cab2c9b79f89e4f72085110f15 100644 (file)
@@ -1528,7 +1528,6 @@ static void schizo_pbm_init(struct pci_controller_info *p,
        pbm->portid = portid;
        pbm->parent = p;
        pbm->prom_node = dp;
-       pbm->pci_first_slot = 1;
 
        pbm->chip_type = chip_type;
        pbm->chip_version = of_getintprop_default(dp, "version#", 0);
index b63ef26abf020a6670d72531282a58e031329165..c6feae6e9690723a6dad5cf8667059696b4f2a22 100644 (file)
@@ -1256,7 +1256,6 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node
 
        pbm->parent = p;
        pbm->prom_node = dp;
-       pbm->pci_first_slot = 1;
 
        pbm->devhandle = devhandle;
 
index 43b07b9b42c5974e7f2d5614f6b89026724870d4..3a811c2cd3c29d990e365608ff56b244f4444707 100644 (file)
@@ -197,9 +197,6 @@ struct pci_pbm_info {
        /* IOMMU state, potentially shared by both PBM segments. */
        struct pci_iommu                *iommu;
 
-       /* PCI slot mapping. */
-       unsigned int                    pci_first_slot;
-
        /* Now things for the actual PCI bus probes. */
        unsigned int                    pci_first_busno;
        unsigned int                    pci_last_busno;