diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index d631dc96c32..cec9b6d3e1c 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -722,7 +722,6 @@ EXPORT_SYMBOL(ieee80211_alloc_hw); | |||
722 | int ieee80211_register_hw(struct ieee80211_hw *hw) | 722 | int ieee80211_register_hw(struct ieee80211_hw *hw) |
723 | { | 723 | { |
724 | struct ieee80211_local *local = hw_to_local(hw); | 724 | struct ieee80211_local *local = hw_to_local(hw); |
725 | const char *name; | ||
726 | int result; | 725 | int result; |
727 | enum ieee80211_band band; | 726 | enum ieee80211_band band; |
728 | struct net_device *mdev; | 727 | struct net_device *mdev; |
@@ -787,8 +786,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
787 | mdev->header_ops = &ieee80211_header_ops; | 786 | mdev->header_ops = &ieee80211_header_ops; |
788 | mdev->set_multicast_list = ieee80211_master_set_multicast_list; | 787 | mdev->set_multicast_list = ieee80211_master_set_multicast_list; |
789 | 788 | ||
790 | name = wiphy_dev(local->hw.wiphy)->driver->name; | 789 | local->hw.workqueue = |
791 | local->hw.workqueue = create_freezeable_workqueue(name); | 790 | create_freezeable_workqueue(wiphy_name(local->hw.wiphy)); |
792 | if (!local->hw.workqueue) { | 791 | if (!local->hw.workqueue) { |
793 | result = -ENOMEM; | 792 | result = -ENOMEM; |
794 | goto fail_workqueue; | 793 | goto fail_workqueue; |