]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh: Early Platform Data for SuperH Mobile
authorMagnus Damm <damm@igel.co.jp>
Wed, 15 Apr 2009 10:50:30 +0000 (10:50 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 19 Apr 2009 04:06:25 +0000 (13:06 +0900)
Use plat_early_device_setup() to register Early Platform Data
for SuperH Mobile processors.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
arch/sh/kernel/cpu/sh4a/setup-sh7723.c

index c1549382c87c01070b0467ea5771bfa25205a7ba..cb5b4db1ca2592380c2d124103aa621b5b997d1a 100644 (file)
@@ -234,6 +234,16 @@ static int __init sh7343_devices_setup(void)
 }
 __initcall(sh7343_devices_setup);
 
+static struct platform_device *sh7343_early_devices[] __initdata = {
+       &cmt_device,
+};
+
+void __init plat_early_device_setup(void)
+{
+       early_platform_add_devices(sh7343_early_devices,
+                                  ARRAY_SIZE(sh7343_early_devices));
+}
+
 enum {
        UNUSED = 0,
 
index 93ecf8ed5c6c346a60c166624c9278a134de46ac..2a771f48e9e093d4ad3b602044d39cd62d91006b 100644 (file)
@@ -226,6 +226,16 @@ static int __init sh7366_devices_setup(void)
 }
 __initcall(sh7366_devices_setup);
 
+static struct platform_device *sh7366_early_devices[] __initdata = {
+       &cmt_device,
+};
+
+void __init plat_early_device_setup(void)
+{
+       early_platform_add_devices(sh7366_early_devices,
+                                  ARRAY_SIZE(sh7366_early_devices));
+}
+
 enum {
        UNUSED=0,
 
index 0e5d204bc79287bf4fc00197a7b3e38593ddab1e..8f974d0494c978000ccfe551c6d37caaeab1d7e7 100644 (file)
@@ -270,6 +270,16 @@ static int __init sh7722_devices_setup(void)
 }
 __initcall(sh7722_devices_setup);
 
+static struct platform_device *sh7722_early_devices[] __initdata = {
+       &cmt_device,
+};
+
+void __init plat_early_device_setup(void)
+{
+       early_platform_add_devices(sh7722_early_devices,
+                                  ARRAY_SIZE(sh7722_early_devices));
+}
+
 enum {
        UNUSED=0,
 
index 5338dacbcfba7c00481cf5fe6424192cb07d8b9e..21a58d63a00d0774f5c10d632ca7a75bd97c1fce 100644 (file)
@@ -281,6 +281,16 @@ static int __init sh7723_devices_setup(void)
 }
 __initcall(sh7723_devices_setup);
 
+static struct platform_device *sh7723_early_devices[] __initdata = {
+       &cmt_device,
+};
+
+void __init plat_early_device_setup(void)
+{
+       early_platform_add_devices(sh7723_early_devices,
+                                  ARRAY_SIZE(sh7723_early_devices));
+}
+
 enum {
        UNUSED=0,