diff options
author | Wu Zhangjin <wuzj@lemote.com> | 2009-07-02 11:22:11 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-17 14:07:46 -0400 |
commit | f54a40ee6b3cb4da638d7705e433bc80aa4f49f6 (patch) | |
tree | 25d378165f44320e8ee8a9fc815e24c5fb75c19b /arch/mips | |
parent | f256a5775a357e2527c7bbfb59c125c4c4c356ad (diff) |
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/lemote/lm2e/pci.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) | |||
84 | { | 84 | { |
85 | ict_pcimap(); | 85 | ict_pcimap(); |
86 | 86 | ||
87 | loongson2e_pci_controller.io_map_base = | 87 | loongson2e_pci_controller.io_map_base = mips_io_port_base; |
88 | (unsigned long) ioremap(LOONGSON2E_IO_PORT_BASE, | ||
89 | loongson2e_pci_io_resource.end - | ||
90 | loongson2e_pci_io_resource.start + 1); | ||
91 | 88 | ||
92 | register_pci_controller(&loongson2e_pci_controller); | 89 | register_pci_controller(&loongson2e_pci_controller); |
93 | 90 | ||