Skip to content

Commit

Permalink
ieee802154: make wpan-phy class registration to subsys_initcall
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Eremin-Solenikov committed Nov 12, 2009
1 parent bb1cafb commit 282a395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/wpan-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 282a395

Please sign in to comment.