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 005/011] sh: plat_early_device_setup() for sh3
From: Magnus Damm <damm@igel.co.jp>

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

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

arch/sh/kernel/cpu/sh3/setup-sh7705.c | 5 +++++
arch/sh/kernel/cpu/sh3/setup-sh770x.c | 5 +++++
arch/sh/kernel/cpu/sh3/setup-sh7710.c | 5 +++++
arch/sh/kernel/cpu/sh3/setup-sh7720.c | 5 +++++
4 files changed, 20 insertions(+)

--- 0012/arch/sh/kernel/cpu/sh3/setup-sh7705.c
+++ work/arch/sh/kernel/cpu/sh3/setup-sh7705.c 2009-01-23 17:05:57.000000000 +0900
@@ -158,6 +158,11 @@ static int __init sh7705_devices_setup(v
}
__initcall(sh7705_devices_setup);

+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7705_devices, ARRAY_SIZE(sh7705_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0012/arch/sh/kernel/cpu/sh3/setup-sh770x.c
+++ work/arch/sh/kernel/cpu/sh3/setup-sh770x.c 2009-01-23 17:06:23.000000000 +0900
@@ -204,6 +204,11 @@ static int __init sh770x_devices_setup(v
}
__initcall(sh770x_devices_setup);

+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh770x_devices, ARRAY_SIZE(sh770x_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0012/arch/sh/kernel/cpu/sh3/setup-sh7710.c
+++ work/arch/sh/kernel/cpu/sh3/setup-sh7710.c 2009-01-23 17:06:48.000000000 +0900
@@ -165,6 +165,11 @@ static int __init sh7710_devices_setup(v
}
__initcall(sh7710_devices_setup);

+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7710_devices, ARRAY_SIZE(sh7710_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0012/arch/sh/kernel/cpu/sh3/setup-sh7720.c
+++ work/arch/sh/kernel/cpu/sh3/setup-sh7720.c 2009-01-23 17:07:03.000000000 +0900
@@ -152,6 +152,11 @@ static int __init sh7720_devices_setup(v
}
__initcall(sh7720_devices_setup);

+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7720_devices, ARRAY_SIZE(sh7720_devices));
+}
+
enum {
UNUSED = 0,


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