linux-mips
[Top] [All Lists]

[PATCH 3/6] rb532: do not KSEG1ADDR an already virtual address

To: "linux-mips" <linux-mips@linux-mips.org>
Subject: [PATCH 3/6] rb532: do not KSEG1ADDR an already virtual address
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 22 Aug 2008 00:14:38 +0200
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This patch removes the superfluous double KSEG1ADDR
against the base register in the setup code.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/setup.c b/arch/mips/rb532/setup.c
index 7aafa95..6d3286e 100644
--- a/arch/mips/rb532/setup.c
+++ b/arch/mips/rb532/setup.c
@@ -10,6 +10,7 @@
 #include <linux/ioport.h>
 
 #include <asm/mach-rc32434/rc32434.h>
+#include <asm/mach-rc32434/rb.h>
 #include <asm/mach-rc32434/pci.h>
 
 struct pci_reg __iomem *pci_reg;
@@ -27,7 +28,7 @@ static struct resource pci0_res[] = {
 static void rb_machine_restart(char *command)
 {
        /* just jump to the reset vector */
-       writel(0x80000001, (void *)KSEG1ADDR(RC32434_REG_BASE + RC32434_RST));
+       writel(0x80000001, (void *)KSEG1ADDR(REG_BASE + RC32434_RST));
        ((void (*)(void)) KSEG1ADDR(0x1FC00000u))();
 }

<Prev in Thread] Current Thread [Next in Thread>