* [PATCH] qtnfmac_pcie: Use module_pci_driver
@ 2020-12-21 7:57 Amey Narkhede
2021-01-14 17:31 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Amey Narkhede @ 2020-12-21 7:57 UTC (permalink / raw)
To: imitsyanko, geomatsi
Cc: kvalo, davem, kuba, linux-wireless, netdev, linux-kernel, Amey Narkhede
Use module_pci_driver for drivers whose init and exit functions
only register and unregister, respectively.
Signed-off-by: Amey Narkhede <ameynarkhede03@gmail.com>
---
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
index 5337e67092ca..d9d06af9adc6 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
@@ -480,18 +480,7 @@ static struct pci_driver qtnf_pcie_drv_data = {
#endif
};
-static int __init qtnf_pcie_register(void)
-{
- return pci_register_driver(&qtnf_pcie_drv_data);
-}
-
-static void __exit qtnf_pcie_exit(void)
-{
- pci_unregister_driver(&qtnf_pcie_drv_data);
-}
-
-module_init(qtnf_pcie_register);
-module_exit(qtnf_pcie_exit);
+module_pci_driver(qtnf_pcie_drv_data)
MODULE_AUTHOR("Quantenna Communications");
MODULE_DESCRIPTION("Quantenna PCIe bus driver for 802.11 wireless LAN.");
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] qtnfmac_pcie: Use module_pci_driver
2020-12-21 7:57 [PATCH] qtnfmac_pcie: Use module_pci_driver Amey Narkhede
@ 2021-01-14 17:31 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-01-14 17:31 UTC (permalink / raw)
To: Amey Narkhede
Cc: imitsyanko, geomatsi, davem, kuba, linux-wireless, netdev,
linux-kernel, Amey Narkhede
Amey Narkhede <ameynarkhede03@gmail.com> wrote:
> Use module_pci_driver for drivers whose init and exit functions
> only register and unregister, respectively.
>
> Signed-off-by: Amey Narkhede <ameynarkhede03@gmail.com>
Patch applied to wireless-drivers-next.git, thanks.
0924ba9fbc26 qtnfmac_pcie: Use module_pci_driver
--
https://patchwork.kernel.org/project/linux-wireless/patch/20201221075735.197255-1-ameynarkhede03@gmail.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-14 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 7:57 [PATCH] qtnfmac_pcie: Use module_pci_driver Amey Narkhede
2021-01-14 17:31 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).