MIPS: Loongson: PCI: use existing mips_io_port_base

mips_io_port_base is initialized via set_io_port_base() in
arch/mips/lemote/lm2e/setup.c, we can use it directly here.

Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Wu Zhangjin 2009-07-02 23:22:11 +08:00 committed by Ralf Baechle
parent f256a5775a
commit f54a40ee6b
1 changed files with 1 additions and 4 deletions

View File

@ -84,10 +84,7 @@ static int __init pcibios_init(void)
{
ict_pcimap();
loongson2e_pci_controller.io_map_base =
(unsigned long) ioremap(LOONGSON2E_IO_PORT_BASE,
loongson2e_pci_io_resource.end -
loongson2e_pci_io_resource.start + 1);
loongson2e_pci_controller.io_map_base = mips_io_port_base;
register_pci_controller(&loongson2e_pci_controller);