diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-03-11 09:47:23 +0300 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 11:00:13 +0400 |
commit | 710fa3c81151948ac4d836ef52b57cef91b0ab72 (patch) | |
tree | 57718b3badc0817db419dce57716973a3faa0f1e /arch/sh/drivers/pci/fixups-sdk7780.c | |
parent | d0e3db40e2a1352aa2a2f425a7d4631bddc03d51 (diff) | |
download | linux-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-sdk7780.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-sdk7780.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/drivers/pci/fixups-sdk7780.c b/arch/sh/drivers/pci/fixups-sdk7780.c index 3f6754a120ed..c2957312b30b 100644 --- a/arch/sh/drivers/pci/fixups-sdk7780.c +++ b/arch/sh/drivers/pci/fixups-sdk7780.c @@ -50,7 +50,7 @@ int pci_fixup_pcic(struct pci_channel *chan) pci_write_reg(chan, 0x00FC0000 , SH7780_PCIMBMR0); /* 16M */ /* Set IOBR for window 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); |