diff options
Diffstat (limited to 'arch/powerpc/sysdev/indirect_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/indirect_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/indirect_pci.c b/arch/powerpc/sysdev/indirect_pci.c index d490e71f0533..efe3cff8dcd1 100644 --- a/arch/powerpc/sysdev/indirect_pci.c +++ b/arch/powerpc/sysdev/indirect_pci.c | |||
@@ -44,7 +44,7 @@ indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
44 | cfg_type = 1; | 44 | cfg_type = 1; |
45 | 45 | ||
46 | bus_no = (bus->number == hose->first_busno) ? | 46 | bus_no = (bus->number == hose->first_busno) ? |
47 | hose->self_busno : bus->number - hose->bus_offset; | 47 | hose->self_busno : bus->number; |
48 | 48 | ||
49 | PCI_CFG_OUT(hose->cfg_addr, | 49 | PCI_CFG_OUT(hose->cfg_addr, |
50 | (0x80000000 | (bus_no << 16) | 50 | (0x80000000 | (bus_no << 16) |
@@ -87,7 +87,7 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
87 | cfg_type = 1; | 87 | cfg_type = 1; |
88 | 88 | ||
89 | bus_no = (bus->number == hose->first_busno) ? | 89 | bus_no = (bus->number == hose->first_busno) ? |
90 | hose->self_busno : bus->number - hose->bus_offset; | 90 | hose->self_busno : bus->number; |
91 | 91 | ||
92 | PCI_CFG_OUT(hose->cfg_addr, | 92 | PCI_CFG_OUT(hose->cfg_addr, |
93 | (0x80000000 | (bus_no << 16) | 93 | (0x80000000 | (bus_no << 16) |