From patchwork Fri Aug 9 09:26:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086003 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F0F314D5 for ; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DADF28C2D for ; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21BE228C42; Fri, 9 Aug 2019 09:26:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CB06D28C2D for ; Fri, 9 Aug 2019 09:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eD5Y96BE4AVpbMSdvIFA1EpJWoUDBNcUyoaI0uxF4Fg=; b=nBwvHSD1Byj/2W OMT88MJFKatSHAOzJ9/VAW4YYFhXzAPCpmRI+36ydyEU/LPFLqGRtbvdaQPQdSlh8c2ES5Sw3y4jr ItgsXEecSJcLkIc0rSN7sBxSzQnA69YuMKG0vyOPdJmjDKL5kvyyUPF13cQfJNjvWWpbyiEqO4vmq 9pFvRCEBsSo07qyCBlAM4TK0X5/Aq84OEFgCQ5K4IiCS9KBkuleCP1LFPJw82KORasuzB6w/8aqOI et5NufKlTqG8hATiv2dIQX8cI4U4rgAERrUh57oYY3YcPaSeFAKTKDZSPjaIsLt6QyoDBvGnOK5Ko jVHJNdNzsAvxAB3NlRvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Ad-0000go-Ng; Fri, 09 Aug 2019 09:26:47 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Aa-0000gT-V7 for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:26:46 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 247E060A97; Fri, 9 Aug 2019 09:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342804; bh=9Vv/znkr/sElwUktSbZ24RCENJLrN/OrskwjH63raZQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=hELNIWrOtSXdx8QWWodImUl2Nym6f4egoKwK7oi6RzQxZKZlocdXt7SBbHJbk72BC lz3KrvHWqg08JnwUAZGNFhX/Fx2LdWiQdl5tvyUHmKSEPgpSXa5DrQj54AdHiQK+25 gIhasAcbeS1mAkLZ1V7jUGcNmd4BNqYbF3AsMroY= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id ACF8B60208 for ; Fri, 9 Aug 2019 09:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342803; bh=9Vv/znkr/sElwUktSbZ24RCENJLrN/OrskwjH63raZQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=B+WJWFzOM6/sHYG48kTHn06IpwdDgs9CVUrU2FwnTsBMMQFFLB88BSl95WBujlgge tEEsHVn8ymgStmYh/OkmVtyG9CAvzyIhor7VVYG12AYORrTxW1m6PpsEl6BVw9sqZu 9Whz1kjixjUNrp2GMTct23kWQk1BdD4mey/okv3o= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ACF8B60208 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Subject: [PATCH 05/15] ath11k: move ath11k_mac_destroy() after _create() From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:40 +0300 Message-ID: <156534280030.30736.16743205044370344895.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022645_019413_7A69FF55 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Just for symmetry. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/mac.c | 34 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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; + } +}