lkml.org 
[lkml]   [2009]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 003/011] sh: plat_early_device_setup() for sh2
From: Magnus Damm <damm@igel.co.jp>

This patch adds sh2 code to register early platform devices
using plat_early_device_setup().

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

arch/sh/kernel/cpu/sh2/setup-sh7619.c | 5 +++++
1 file changed, 5 insertions(+)

--- 0013/arch/sh/kernel/cpu/sh2/setup-sh7619.c
+++ work/arch/sh/kernel/cpu/sh2/setup-sh7619.c 2009-01-23 17:31:44.000000000 +0900
@@ -149,6 +149,11 @@ static int __init sh7619_devices_setup(v
}
__initcall(sh7619_devices_setup);

+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7619_devices, ARRAY_SIZE(sh7619_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);

\
 
 \ /
  Last update: 2009-01-23 12:03    [W:0.428 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site