From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: johnstul@us.ibm.com, gregkh@suse.de, roel.kluin@gmail.com,
lethal@linux-sh.org, tglx@linutronix.de,
Magnus Damm <magnus.damm@gmail.com>,
mingo@redhat.com, akpm@linux-foundation.org
Subject: [PATCH 004/011] sh: plat_early_device_setup() for sh2a
Date: Fri, 23 Jan 2009 19:58:16 +0900 [thread overview]
Message-ID: <20090123105816.18779.89128.sendpatchset@rx1.opensource.se> (raw)
In-Reply-To: <20090123105721.18779.80514.sendpatchset@rx1.opensource.se>
From: Magnus Damm <damm@igel.co.jp>
This patch adds sh2a code to register early platform devices
using plat_early_device_setup().
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
arch/sh/kernel/cpu/sh2a/setup-mxg.c | 5 +++++
arch/sh/kernel/cpu/sh2a/setup-sh7201.c | 5 +++++
arch/sh/kernel/cpu/sh2a/setup-sh7203.c | 5 +++++
arch/sh/kernel/cpu/sh2a/setup-sh7206.c | 5 +++++
4 files changed, 20 insertions(+)
--- 0014/arch/sh/kernel/cpu/sh2a/setup-mxg.c
+++ work/arch/sh/kernel/cpu/sh2a/setup-mxg.c 2009-01-23 17:30:02.000000000 +0900
@@ -158,6 +158,11 @@ static int __init mxg_devices_setup(void
}
__initcall(mxg_devices_setup);
+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(mxg_devices, ARRAY_SIZE(mxg_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0014/arch/sh/kernel/cpu/sh2a/setup-sh7201.c
+++ work/arch/sh/kernel/cpu/sh2a/setup-sh7201.c 2009-01-23 17:28:28.000000000 +0900
@@ -397,6 +397,11 @@ static int __init sh7201_devices_setup(v
}
__initcall(sh7201_devices_setup);
+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7201_devices, ARRAY_SIZE(sh7201_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0014/arch/sh/kernel/cpu/sh2a/setup-sh7203.c
+++ work/arch/sh/kernel/cpu/sh2a/setup-sh7203.c 2009-01-23 17:28:47.000000000 +0900
@@ -342,6 +342,11 @@ static int __init sh7203_devices_setup(v
}
__initcall(sh7203_devices_setup);
+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7203_devices, ARRAY_SIZE(sh7203_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
--- 0014/arch/sh/kernel/cpu/sh2a/setup-sh7206.c
+++ work/arch/sh/kernel/cpu/sh2a/setup-sh7206.c 2009-01-23 17:29:43.000000000 +0900
@@ -243,6 +243,11 @@ static int __init sh7206_devices_setup(v
}
__initcall(sh7206_devices_setup);
+void __init plat_early_device_setup(void)
+{
+ early_platform_add_devices(sh7206_devices, ARRAY_SIZE(sh7206_devices));
+}
+
void __init plat_irq_setup(void)
{
register_intc_controller(&intc_desc);
next prev parent reply other threads:[~2009-01-23 11:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 10:57 [PATCH 000/011] early platform patches Magnus Damm
2009-01-23 10:57 ` [PATCH 001/011] early platform driver V3 Magnus Damm
2009-01-23 10:57 ` [PATCH 002/011] sh: add plat_early_device_setup() function Magnus Damm
2009-01-23 10:58 ` [PATCH 003/011] sh: plat_early_device_setup() for sh2 Magnus Damm
2009-01-23 10:58 ` Magnus Damm [this message]
2009-01-23 10:58 ` [PATCH 005/011] sh: plat_early_device_setup() for sh3 Magnus Damm
2009-01-23 10:58 ` [PATCH 006/011] sh: plat_early_device_setup() for sh4 Magnus Damm
2009-01-23 10:58 ` [PATCH 007/011] sh: plat_early_device_setup() for sh4a Magnus Damm
2009-01-23 10:59 ` [PATCH 008/011] sh: add early platform support for earlyprintk Magnus Damm
2009-01-23 10:59 ` [PATCH 009/011] sh-sci: add early platform support Magnus Damm
2009-01-23 10:59 ` [PATCH 010/011] sh: add early platform support for earlytimer Magnus Damm
2009-01-23 10:59 ` [PATCH 011/011] sh_cmt: add early platform support Magnus Damm
2009-01-29 0:51 ` [PATCH 000/011] early platform patches Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090123105816.18779.89128.sendpatchset@rx1.opensource.se \
--to=magnus.damm@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=johnstul@us.ibm.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=roel.kluin@gmail.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.