Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2a5ccbc5bb471c10b58ea85ac463e70faead1c8a
Commit:     2a5ccbc5bb471c10b58ea85ac463e70faead1c8a
Parent:     5229ee185287f4fd0d7809e6554b40ec83a4ba6c
Author:     Kumar Gala <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 25 12:53:51 2007 -0500
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Fri Jun 29 01:58:12 2007 -0500

    [POWERPC] Remove bus_offset in places its not really used
    
    The user of the fsl_pcie code doesn't set bus_offset and 82xx doesn't
    require it either.  Remove the places in the code that reference it so
    we can remove it all together.
    
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/82xx/mpc82xx_ads.c |    1 -
 arch/powerpc/sysdev/fsl_pcie.c            |    8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/platforms/82xx/mpc82xx_ads.c 
b/arch/powerpc/platforms/82xx/mpc82xx_ads.c
index 715107b..d1e0919 100644
--- a/arch/powerpc/platforms/82xx/mpc82xx_ads.c
+++ b/arch/powerpc/platforms/82xx/mpc82xx_ads.c
@@ -552,7 +552,6 @@ static void __init mpc82xx_add_bridge(struct device_node 
*np)
 
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
-       hose->bus_offset = 0;
 
        setup_indirect_pci(hose,
                           r.start + offsetof(pci_cpm2_t, pci_cfg_addr),
diff --git a/arch/powerpc/sysdev/fsl_pcie.c b/arch/powerpc/sysdev/fsl_pcie.c
index 6bbd7f8..ea3ec6b 100644
--- a/arch/powerpc/sysdev/fsl_pcie.c
+++ b/arch/powerpc/sysdev/fsl_pcie.c
@@ -50,12 +50,12 @@ indirect_read_config_pcie(struct pci_bus *bus, unsigned int 
devfn, int offset,
        if (bus->number == 0xff) {
                PCI_CFG_OUT(hose->cfg_addr,
                            (0x80000000 | ((offset & 0xf00) << 16) |
-                            ((bus->number - hose->bus_offset) << 16)
+                            (bus->number<< 16)
                             | (devfn << 8) | ((offset & 0xfc) )));
        } else {
                PCI_CFG_OUT(hose->cfg_addr,
                            (0x80000001 | ((offset & 0xf00) << 16) |
-                            ((bus->number - hose->bus_offset) << 16)
+                            (bus->number<< 16)
                             | (devfn << 8) | ((offset & 0xfc) )));
        }
 
@@ -101,12 +101,12 @@ indirect_write_config_pcie(struct pci_bus *bus, unsigned 
int devfn, int offset,
        if (bus->number == 0xff) {
                PCI_CFG_OUT(hose->cfg_addr,
                            (0x80000000 | ((offset & 0xf00) << 16) |
-                            ((bus->number - hose->bus_offset) << 16)
+                            (bus->number << 16)
                             | (devfn << 8) | ((offset & 0xfc) )));
        } else {
                PCI_CFG_OUT(hose->cfg_addr,
                            (0x80000001 | ((offset & 0xf00) << 16) |
-                            ((bus->number - hose->bus_offset) << 16)
+                            (bus->number << 16)
                             | (devfn << 8) | ((offset & 0xfc) )));
         }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to