linux-mips
[Top] [All Lists]

[PATCH] rb532: do not use phys_t

To: ralf@linux-mips.org
Subject: [PATCH] rb532: do not use phys_t
From: Florian Fainelli <florian@openwrt.org>
Date: Thu, 11 Sep 2008 17:55:41 +0200
Cc: Linux MIPS Org <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
MIPS include types.h says that using phys_t is bad, which in
fact is an unsigned long, so use an unsigned long directly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index 46ca24d..c37ceda 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -123,8 +123,8 @@ void __init prom_setup_cmdline(void)
 void __init prom_init(void)
 {
        struct ddr_ram __iomem *ddr;
-       phys_t memsize;
-       phys_t ddrbase;
+       unsigned long memsize;
+       unsigned long ddrbase;
 
        ddr = ioremap_nocache(ddr_reg[0].start,
                        ddr_reg[0].end - ddr_reg[0].start);

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