MIPS: Loongson: PCI: use existing mips_io_port_base
authorWu Zhangjin <wuzj@lemote.com>
Thu, 2 Jul 2009 15:22:11 +0000 (23:22 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:46 +0000 (20:07 +0200)
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>
arch/mips/lemote/lm2e/pci.c

index 8be03a8e1ad49e50846c133763667d1bc96d58b3..152efb65bba1f87c2278be47df60fdfad77dee45 100644 (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);