lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090123105828.18779.18079.sendpatchset@rx1.opensource.se>
Date:	Fri, 23 Jan 2009 19:58:28 +0900
From:	Magnus Damm <magnus.damm@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	akpm@...ux-foundation.org, johnstul@...ibm.com, gregkh@...e.de,
	roel.kluin@...il.com, lethal@...ux-sh.org, tglx@...utronix.de,
	mingo@...hat.com, Magnus Damm <magnus.damm@...il.com>
Subject: [PATCH 005/011] sh: plat_early_device_setup() for sh3

From: Magnus Damm <damm@...l.co.jp>

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

Signed-off-by: Magnus Damm <damm@...l.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,
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ