[PATCH v4 06/16] [loongson] pci: use existing mips_io_port_base

From: Wu Zhangjin
Date: Thu Jul 02 2009 - 11:28:26 EST


From: Wu Zhangjin <wuzj@xxxxxxxxxx>

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@xxxxxxxxxx>
---
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 8be03a8..152efb6 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);

--
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/