summaryrefslogtreecommitdiff
path: root/arch/sh/drivers/pci/fixups-r7780rp.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-03-11 09:47:23 +0300
committerPaul Mundt <lethal@linux-sh.org>2009-04-16 11:00:13 +0400
commit710fa3c81151948ac4d836ef52b57cef91b0ab72 (patch)
tree57718b3badc0817db419dce57716973a3faa0f1e /arch/sh/drivers/pci/fixups-r7780rp.c
parentd0e3db40e2a1352aa2a2f425a7d4631bddc03d51 (diff)
downloadlinux-710fa3c81151948ac4d836ef52b57cef91b0ab72.tar.xz
sh: avoid using PCIBIOS_MIN_xxx
Replaces PCIBIOS_MIN_IO and PCIBIOS_MIN_MEM with direct struct pci_channel access. This allows us to have more than one pci channel. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-r7780rp.c')
-rw-r--r--arch/sh/drivers/pci/fixups-r7780rp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/drivers/pci/fixups-r7780rp.c b/arch/sh/drivers/pci/fixups-r7780rp.c
index 5b25021bbd62..31f8dfbfcbf5 100644
--- a/arch/sh/drivers/pci/fixups-r7780rp.c
+++ b/arch/sh/drivers/pci/fixups-r7780rp.c
@@ -37,7 +37,7 @@ int pci_fixup_pcic(struct pci_channel *chan)
#endif
/* Set IOBR for windows containing area specified in pci.h */
- pci_write_reg(chan, (PCIBIOS_MIN_IO & ~(SH7780_PCI_IO_SIZE - 1)),
+ pci_write_reg(chan, chan->io_resource->start & ~(SH7780_PCI_IO_SIZE-1),
SH7780_PCIIOBR);
pci_write_reg(chan, ((SH7780_PCI_IO_SIZE-1) & (7<<18)),
SH7780_PCIIOBMR);