aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh5
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-07-22 15:14:29 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-07-23 13:06:07 +0900
commit955c9863bb5855a994751843e7066017edc00410 (patch)
tree77810b9d6475150ab3074d0c4fdda24b5251ffe0 /arch/sh/kernel/cpu/sh5
parenti2c: change i2c-sh_mobile.c module_init() to subsys_initcall() (diff)
downloadlinux-dev-955c9863bb5855a994751843e7066017edc00410.tar.xz
linux-dev-955c9863bb5855a994751843e7066017edc00410.zip
sh: convert processor device setup functions to arch_initcall()
Convert the processor platform device setup functions from __initcall() and sometimes device_initcall() to arch_initcall(). This makes sure that the platform devices are registered a bit earlier so the devices are available when drivers register using initcall levels earlier than device_initcall(). A good example is platform devices needed by i2c-sh_mobile.c which registers a bit earlier using subsys_initcall(). Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh5')
-rw-r--r--arch/sh/kernel/cpu/sh5/setup-sh5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c b/arch/sh/kernel/cpu/sh5/setup-sh5.c
index f5ff1ac57fc2..6a0f82f70032 100644
--- a/arch/sh/kernel/cpu/sh5/setup-sh5.c
+++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c
@@ -186,7 +186,7 @@ static int __init sh5_devices_setup(void)
return platform_add_devices(sh5_devices,
ARRAY_SIZE(sh5_devices));
}
-__initcall(sh5_devices_setup);
+arch_initcall(sh5_devices_setup);
void __init plat_early_device_setup(void)
{