Commit 10e50a68 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc32: Fix c&p error in arch/ppc/syslib/indirect_pci.c

From: Tom Rini <trini@kernel.crashing.org>

Fix a cut & paste error in forward porting from 2.4, we don't reference
dev->bus or dev->devfn, both are passed as arguments.
parent 08fec736
...@@ -44,8 +44,8 @@ indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset, ...@@ -44,8 +44,8 @@ indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset,
cfg_type = 1; cfg_type = 1;
PCI_CFG_OUT(hose->cfg_addr, PCI_CFG_OUT(hose->cfg_addr,
(0x80000000 | ((dev->bus->number - hose->bus_offset) << 16) (0x80000000 | ((bus->number - hose->bus_offset) << 16)
| (dev->devfn << 8) | ((offset & 0xfc) | cfg_type))); | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
/* /*
* Note: the caller has already checked that offset is * Note: the caller has already checked that offset is
...@@ -83,8 +83,8 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, ...@@ -83,8 +83,8 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
cfg_type = 1; cfg_type = 1;
PCI_CFG_OUT(hose->cfg_addr, PCI_CFG_OUT(hose->cfg_addr,
(0x80000000 | ((dev->bus->number - hose->bus_offset) << 16) (0x80000000 | ((bus->number - hose->bus_offset) << 16)
| (dev->devfn << 8) | ((offset & 0xfc) | cfg_type))); | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
/* /*
* Note: the caller has already checked that offset is * Note: the caller has already checked that offset is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment