From patchwork Fri Jun 24 10:06:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 12894319 X-Patchwork-Delegate: nbd@nbd.name Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C52F9C433EF for ; Fri, 24 Jun 2022 10:06:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbiFXKGw (ORCPT ); Fri, 24 Jun 2022 06:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbiFXKGm (ORCPT ); Fri, 24 Jun 2022 06:06:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B25616F4B0 for ; Fri, 24 Jun 2022 03:06:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45EA46218C for ; Fri, 24 Jun 2022 10:06:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19547C34114; Fri, 24 Jun 2022 10:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656065200; bh=PHOHvDSIWwZlgZEjUF9IlCuXjjMkgxlP2mtKSWGku5c=; h=From:To:Cc:Subject:Date:From; b=cuCzwAO1znO9Fw+gReohbOudot/gu0d+uQ/vSmhR7lZ+r6JBpPb8kYACilZjoNfb6 jWL6hwjoGvd1l4XSibqRV9MyS4U66LPNYMNpSMHZXXjU9oy9LeM0E4xRN9XjW8Eb+x EdgNcYjJ6caZVeMZpJ9lV5dMoieEdG9MdRaNRFU/AaJHm35dZSGnv43Tk9rXOMndTo 4ZhJSY/3WFN1hroT/5Z3Pp+VVfBIGjL8LUMSdsjPo4F0mXkH9uNZvZhoH3bAw4Lqxj g9f4Cf3OinQVX+Vau5MvfA3ioDSa9Nd+IRcGe0cBt/qqKSIzlyt6uOtUHOp7uUlgh+ wmOBEJxaIQMhg== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com Subject: [PATCH] mt76: mt7921: make mt7921_pci_driver static Date: Fri, 24 Jun 2022 12:06:29 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org mt7921_pci_driver struct is only referenced in mt7921/pci.c so make it static. Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h | 1 - drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h b/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h index efeb82cbbe83..d2d45f381232 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h @@ -272,7 +272,6 @@ mt7921_hw_dev(struct ieee80211_hw *hw) mt76_connac_mutex_release(&(dev)->mt76, &(dev)->pm) extern const struct ieee80211_ops mt7921_ops; -extern struct pci_driver mt7921_pci_driver; u32 mt7921_reg_map(struct mt7921_dev *dev, u32 addr); diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c index 23361a505daf..06af35250b3b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c @@ -489,7 +489,7 @@ static int mt7921_pci_resume(struct pci_dev *pdev) } #endif /* CONFIG_PM */ -struct pci_driver mt7921_pci_driver = { +static struct pci_driver mt7921_pci_driver = { .name = KBUILD_MODNAME, .id_table = mt7921_pci_device_table, .probe = mt7921_pci_probe,