linux-mips
[Top] [All Lists]

[PATCH] vr41xx: add plat_setup to -mm queue

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] vr41xx: add plat_setup to -mm queue
From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Date: Fri, 28 Oct 2005 00:59:37 +0900
Cc: yuasa@hh.iij4u.or.jp, linux-mips <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

Please add this patch to -mm queue.
This has already been included in linux-mips.git. 

Yoichi

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>

diff -Npru -X dontdiff mm1-orig/arch/mips/vr41xx/common/init.c 
mm1/arch/mips/vr41xx/common/init.c
--- mm1-orig/arch/mips/vr41xx/common/init.c     2005-10-20 15:23:05.000000000 
+0900
+++ mm1/arch/mips/vr41xx/common/init.c  2005-10-27 23:26:40.000000000 +0900
@@ -58,6 +58,14 @@ static void __init timer_init(void)
        board_timer_setup = setup_timer_irq;
 }
 
+void __init plat_setup(void)
+{
+       vr41xx_calculate_clock_frequency();
+
+       timer_init();
+       iomem_resource_init();
+}
+
 void __init prom_init(void)
 {
        int argc, i;
@@ -71,12 +79,6 @@ void __init prom_init(void)
                if (i < (argc - 1))
                        strcat(arcs_cmdline, " ");
        }
-
-       vr41xx_calculate_clock_frequency();
-
-       timer_init();
-
-       iomem_resource_init();
 }
 
 unsigned long __init prom_free_prom_memory (void)

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