Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f54a40ee authored by Wu Zhangjin's avatar Wu Zhangjin Committed by Ralf Baechle
Browse files

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: default avatarWu Zhangjin <wuzj@lemote.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f256a577
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);