Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f17c9bf0 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller
Browse files

net: Convert cfg802154_pernet_ops



These pernet_operations have only exit method, which
moves devices from cfg802154_rdev_list to init_net.
This may occur in any time from nl802154_wpan_phy_netns(),
so we are nice with rtnl_lock() synchronization.

Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 989d9812
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -345,6 +345,7 @@ static void __net_exit cfg802154_pernet_exit(struct net *net)

static struct pernet_operations cfg802154_pernet_ops = {
	.exit = cfg802154_pernet_exit,
	.async = true,
};

static int __init wpan_phy_class_init(void)