From: Dmitry Eremin-Solenikov Date: Thu, 12 Nov 2009 20:58:23 +0000 (+0300) Subject: ieee802154: make wpan-phy class registration to subsys_initcall X-Git-Tag: v2.6.33-rc1~388^2~367^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=282a39546f6d213399b325ec830ee37e8d915924;p=thirdparty%2Fkernel%2Flinux.git ieee802154: make wpan-phy class registration to subsys_initcall Move ieee802154 initialisation to subsys_initcall call, so that wpan-phy class is initialised before all devices (thus saving us from oops during bootup). Signed-off-by: Dmitry Eremin-Solenikov --- diff --git a/net/ieee802154/wpan-class.c b/net/ieee802154/wpan-class.c index 38bac70cca10c..268691256a6d2 100644 --- a/net/ieee802154/wpan-class.c +++ b/net/ieee802154/wpan-class.c @@ -205,7 +205,7 @@ err_nl: err: return rc; } -module_init(wpan_phy_class_init); +subsys_initcall(wpan_phy_class_init); static void __exit wpan_phy_class_exit(void) {