diff options
| author | Ethan Nelson-Moore <enelsonmoore@gmail.com> | 2026-02-04 23:06:31 -0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-02-10 10:16:33 +0100 |
| commit | d82cb7b7ec421196d7823a5d8e0bced9a85c1d11 (patch) | |
| tree | 126c06678a29613f9b4a75d9ce85c26bc2ea107e | |
| parent | 30827969b03e7745dd199dca48847604d99b70b3 (diff) | |
net: arcnet: com20020-pci: use module_pci_driver
The only thing this driver's init/exit functions do is call
pci_register/unregister_driver, and in the case of the init function,
print an unnecessary message. Replace them with module_pci_driver to
simplify the code.
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260205070632.37516-1-enelsonmoore@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
| -rw-r--r-- | drivers/net/arcnet/com20020-pci.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c index 0472bcdff130..19e411b2e3a7 100644 --- a/drivers/net/arcnet/com20020-pci.c +++ b/drivers/net/arcnet/com20020-pci.c @@ -618,17 +618,4 @@ static struct pci_driver com20020pci_driver = { .remove = com20020pci_remove, }; -static int __init com20020pci_init(void) -{ - if (BUGLVL(D_NORMAL)) - pr_info("%s\n", "COM20020 PCI support"); - return pci_register_driver(&com20020pci_driver); -} - -static void __exit com20020pci_cleanup(void) -{ - pci_unregister_driver(&com20020pci_driver); -} - -module_init(com20020pci_init) -module_exit(com20020pci_cleanup) +module_pci_driver(com20020pci_driver); |
