sparc64: Fix bootup crash on sun4v.
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 18:56:22 +0000 (11:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 23:21:24 +0000 (16:21 -0700)
commit16f61cb9110047912a6feb40676b10af1a973a1f
treea02c457ab4525c4723451bfca885eb21a26dafc1
parent81cc5e7c4ed5bf9172b26bb3a7d019362dd3d204
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>
arch/sparc/kernel/ds.c