Bläddra i källkod

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 <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov 16 år sedan
förälder
incheckning
282a39546f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      net/ieee802154/wpan-class.c

+ 1 - 1
net/ieee802154/wpan-class.c

@@ -205,7 +205,7 @@ static int __init wpan_phy_class_init(void)
 err:
 	return rc;
 }
-module_init(wpan_phy_class_init);
+subsys_initcall(wpan_phy_class_init);
 
 static void __exit wpan_phy_class_exit(void)
 {