diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-12 05:36:53 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-12 07:10:37 +0300 |
commit | be4fd8e5d9f5cd3fdc368e32e7957bcb83bcbb8b (patch) | |
tree | 177a559b3871138fe989511cfc8ec6de7b5623d6 /net/mac802154/main.c | |
parent | 912f67aec761ea4d2107ed0bcb5aef01ae1ecd2e (diff) | |
download | linux-be4fd8e5d9f5cd3fdc368e32e7957bcb83bcbb8b.tar.xz |
mac802154: add ifname change notifier
This patch adds a netdev notifier for interface renaming. We have a name
attribute inside of subif data struct. This is needed to have always the
actual netdev name in sdata name attribute.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/main.c')
-rw-r--r-- | net/mac802154/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c index 40a326402ec1..46c76e005446 100644 --- a/net/mac802154/main.c +++ b/net/mac802154/main.c @@ -182,5 +182,20 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw) } EXPORT_SYMBOL(ieee802154_unregister_hw); +static int __init ieee802154_init(void) +{ + return ieee802154_iface_init(); +} + +static void __exit ieee802154_exit(void) +{ + ieee802154_iface_exit(); + + rcu_barrier(); +} + +subsys_initcall(ieee802154_init); +module_exit(ieee802154_exit); + MODULE_DESCRIPTION("IEEE 802.15.4 subsystem"); MODULE_LICENSE("GPL v2"); |