ieee802154: make wpan-phy class registration to subsys_initcall
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 12 Nov 2009 20:58:23 +0000 (23:58 +0300)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 12 Nov 2009 21:07:15 +0000 (00:07 +0300)
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 <dbaryshkov@gmail.com>
net/ieee802154/wpan-class.c

index 38bac70cca10c6a1f33215ab6c7393206fa21b58..268691256a6d2b915caeb7a951cce97aed98ecdf 100644 (file)
@@ -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)
 {