linux-mips
[Top] [All Lists]

[PATCH 2.6] vr41xx: add plat_setup

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2.6] vr41xx: add plat_setup
From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Date: Sat, 23 Jul 2005 01:46:44 +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,

This patch has added to plat_setup for vr41xx.
Please apply this patch.

Yoichi

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

diff -urN -X dontdiff a-orig/arch/mips/vr41xx/common/init.c 
a/arch/mips/vr41xx/common/init.c
--- a-orig/arch/mips/vr41xx/common/init.c       2005-04-19 01:07:37.000000000 
+0900
+++ a/arch/mips/vr41xx/common/init.c    2005-07-23 01:36:05.000000000 +0900
@@ -58,6 +58,14 @@
        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 @@
                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>