aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-04-13 11:56:22 -0700
committerStefan Bader <stefan.bader@canonical.com>2012-10-09 15:05:11 +0200
commit7f37634333ea36d060289885cc46fa85ba405088 (patch)
treebb82fd5f271b2567287c207755713b699c2d2a7b /arch
parent88a4b19987f4ea32fd96e077adcd12202371e87c (diff)
downloadlinux-2.6.32.y-drm33.z-7f37634333ea36d060289885cc46fa85ba405088.tar.gz
sparc64: Fix bootup crash on sun4v.
commit 9e0daff30fd7ecf698e5d20b0fa7f851e427cca5 upstream. The DS driver registers as a subsys_initcall() but this can be too early, in particular this risks registering before we've had a chance to allocate and setup module_kset in kernel/params.c which is performed also as a subsyts_initcall(). Register DS using device_initcall() insteal. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/ds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ds.c b/arch/sparc/kernel/ds.c
index 4a700f4b79cebf..6a831bd517f26e 100644
--- a/arch/sparc/kernel/ds.c
+++ b/arch/sparc/kernel/ds.c
@@ -1242,4 +1242,4 @@ static int __init ds_init(void)
return vio_register_driver(&ds_driver);
}
-subsys_initcall(ds_init);
+fs_initcall(ds_init);