@@ -5301,23 +5301,6 @@ static int ath11k_mac_register(struct ath11k *ar)
return ret;
}
-void ath11k_mac_destroy(struct ath11k_base *ab)
-{
- struct ath11k *ar;
- struct ath11k_pdev *pdev;
- int i;
-
- for (i = 0; i < ab->num_radios; i++) {
- pdev = &ab->pdevs[i];
- ar = pdev->ar;
- if (!ar)
- continue;
-
- ieee80211_free_hw(ar->hw);
- pdev->ar = NULL;
- }
-}
-
void ath11k_mac_unregister(struct ath11k_base *ab)
{
struct ath11k *ar;
@@ -5429,3 +5412,20 @@ int ath11k_mac_create(struct ath11k_base *ab)
return ret;
}
+
+void ath11k_mac_destroy(struct ath11k_base *ab)
+{
+ struct ath11k *ar;
+ struct ath11k_pdev *pdev;
+ int i;
+
+ for (i = 0; i < ab->num_radios; i++) {
+ pdev = &ab->pdevs[i];
+ ar = pdev->ar;
+ if (!ar)
+ continue;
+
+ ieee80211_free_hw(ar->hw);
+ pdev->ar = NULL;
+ }
+}
Just for symmetry. Signed-off-by: Kalle Valo <kvalo@codeaurora.org> --- drivers/net/wireless/ath/ath11k/mac.c | 34 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-)