Commit f54a40ee6b3cb4da638d7705e433bc80aa4f49f6

Authored by Wu Zhangjin
Committed by Ralf Baechle
1 parent f256a5775a

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>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

arch/mips/lemote/lm2e/pci.c
... ... @@ -84,10 +84,7 @@
84 84 {
85 85 ict_pcimap();
86 86  
87   - loongson2e_pci_controller.io_map_base =
88   - (unsigned long) ioremap(LOONGSON2E_IO_PORT_BASE,
89   - loongson2e_pci_io_resource.end -
90   - loongson2e_pci_io_resource.start + 1);
  87 + loongson2e_pci_controller.io_map_base = mips_io_port_base;
91 88  
92 89 register_pci_controller(&loongson2e_pci_controller);
93 90