Skip to content

Commit

Permalink
sparc64: Fix bootup crash on sun4v.
Browse files Browse the repository at this point in the history
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]>
Cc: [email protected]
  • Loading branch information
davem330 committed Apr 13, 2012
1 parent 4166fb6 commit 9e0daff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,4 +1264,4 @@ static int __init ds_init(void)
return vio_register_driver(&ds_driver);
}

subsys_initcall(ds_init);
fs_initcall(ds_init);

0 comments on commit 9e0daff

Please sign in to comment.