Skip to content

Commit

Permalink
MIPS: Loongson: PCI: use existing mips_io_port_base
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Sep 17, 2009
1 parent f256a57 commit f54a40e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/mips/lemote/lm2e/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f54a40e

Please sign in to comment.