diff options
author | David S. Miller <davem@davemloft.net> | 2012-04-13 18:56:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-13 18:56:22 (GMT) |
commit | 9e0daff30fd7ecf698e5d20b0fa7f851e427cca5 (patch) | |
tree | d40d7ee1cf7e2ca200d9c58c29e9ba44f8fa2d14 /arch/sparc | |
parent | 4166fb64593514ad920b7dbd290e0a934b37d24a (diff) | |
download | linux-9e0daff30fd7ecf698e5d20b0fa7f851e427cca5.tar.xz |
sparc64: Fix bootup crash on sun4v.
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ds.c b/arch/sparc/kernel/ds.c index fea13c7..b93c2c9 100644 --- a/arch/sparc/kernel/ds.c +++ b/arch/sparc/kernel/ds.c @@ -1264,4 +1264,4 @@ static int __init ds_init(void) return vio_register_driver(&ds_driver); } -subsys_initcall(ds_init); +fs_initcall(ds_init); |