diff mbox series

[05/15] ath11k: move ath11k_mac_destroy() after _create()

Message ID 156534280030.30736.16743205044370344895.stgit@x230 (mailing list archive)
State Accepted
Commit 9abae4e48e1ea490e09ec31d59ba4bf53b4d9200
Delegated to: Kalle Valo
Headers show
Series [01/15] ath11k: rename per_transfer_context to skb | expand

Commit Message

Kalle Valo Aug. 9, 2019, 9:26 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index c40b71e6aa92..dc9f5f98f880 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -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;
+	}
+}