Skip to content

Commit

Permalink
mt76: mt7921: make mt7921_pci_driver static
Browse files Browse the repository at this point in the history
mt7921_pci_driver struct is only referenced in mt7921/pci.c so make it
static.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Jul 11, 2022
1 parent 7fd299e commit d5459ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mt7921/mt7921.h
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion mt7921/pci.c
Expand Up @@ -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,
Expand Down

0 comments on commit d5459ef

Please sign in to comment.