sparc64: Fix bootup crash on sun4v.
David Miller
maintainerPATCH 1/1 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 <[email protected]>
--- arch/sparc/kernel/ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/kernel/ds.c +1 -1
@@ -1264,4 +1264,4 @@ static int __init ds_init(void)return vio_register_driver (&ds_driver); } -subsys_initcall (ds_init); +fs_initcall (ds_init);
Signature · 1 line
1.7.9.5
arch/sparc/kernel/ds.c static int __init ds_init(void) · line 1267
Quoted 6 lines · David Miller
Register DS using
device_initcall()insteal.arch/sparc/kernel/ds.c +1
-1-subsys_initcall (ds_init); +fs_initcall (ds_init);
Changelog and patch does not match?!?
Sam
David Miller
maintainerFrom: Sam Ravnborg <[email protected]>
Date: Fri, 13 Apr 2012 23:41:36 +0200
Quoted 9 lines · David Miller
arch/sparc/kernel/ds.c static int __init ds_init(void) · line 1267
Quoted 6 lines
Register DS using
device_initcall()insteal.arch/sparc/kernel/ds.c +1
-1-subsys_initcall (ds_init); +fs_initcall (ds_init);Changelog and patch does not match?!?
Grrr... good catch.