[PATCH 1/5] sh: SH7734: Add devices_setup function of SH7734

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@xxxxxxxxxxx>
---
 arch/sh/kernel/cpu/sh4a/setup-sh7734.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7734.c b/arch/sh/kernel/cpu/sh4a/setup-sh7734.c
index f799971..6ad884c 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7734.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7734.c
@@ -440,6 +440,13 @@ static struct platform_device *sh7734_devices[] __initdata = {
 	&rtc_device,
 };
 
+static int __init sh7734_devices_setup(void)
+{
+	return platform_add_devices(sh7734_devices,
+		ARRAY_SIZE(sh7734_devices));
+}
+arch_initcall(sh7734_devices_setup);
+
 static struct platform_device *sh7734_early_devices[] __initdata = {
 	&scif0_device,
 	&scif1_device,
-- 
1.7.10

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


[Linux OMAP]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux