[PATCH 005/011] sh: plat_early_device_setup() for sh3

From: Magnus Damm
Date: Fri Jan 23 2009 - 06:01:32 EST


From: Magnus Damm <damm@xxxxxxxxxx>

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

Signed-off-by: Magnus Damm <damm@xxxxxxxxxx>
---

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,

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/