From: Wu Zhangjin Date: Thu, 2 Jul 2009 15:22:11 +0000 (+0800) Subject: MIPS: Loongson: PCI: use existing mips_io_port_base X-Git-Tag: firefly_0821_release~12938^2~32 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f54a40ee6b3cb4da638d7705e433bc80aa4f49f6;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/lemote/lm2e/pci.c b/arch/mips/lemote/lm2e/pci.c index 8be03a8e1ad4..152efb65bba1 100644 --- a/arch/mips/lemote/lm2e/pci.c +++ b/arch/mips/lemote/lm2e/pci.c @@ -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);