diff options
Diffstat (limited to 'net/mac802154/main.c')
-rw-r--r-- | net/mac802154/main.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c index b34ddbf43c3d..333d33daec6e 100644 --- a/net/mac802154/main.c +++ b/net/mac802154/main.c | |||
@@ -59,22 +59,6 @@ mac802154_netdev_register(struct wpan_phy *phy, struct net_device *dev) | |||
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | void mac802154_del_iface(struct wpan_phy *phy, struct net_device *dev) | ||
63 | { | ||
64 | struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); | ||
65 | |||
66 | ASSERT_RTNL(); | ||
67 | |||
68 | BUG_ON(sdata->local->phy != phy); | ||
69 | |||
70 | mutex_lock(&sdata->local->iflist_mtx); | ||
71 | list_del_rcu(&sdata->list); | ||
72 | mutex_unlock(&sdata->local->iflist_mtx); | ||
73 | |||
74 | synchronize_rcu(); | ||
75 | unregister_netdevice(sdata->dev); | ||
76 | } | ||
77 | |||
78 | struct net_device * | 62 | struct net_device * |
79 | mac802154_add_iface(struct wpan_phy *phy, const char *name, int type) | 63 | mac802154_add_iface(struct wpan_phy *phy, const char *name, int type) |
80 | { | 64 | { |