]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: arcnet: com20020-pci: use module_pci_driver
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Thu, 5 Feb 2026 07:06:31 +0000 (23:06 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 09:16:33 +0000 (10:16 +0100)
commitd82cb7b7ec421196d7823a5d8e0bced9a85c1d11
tree126c06678a29613f9b4a75d9ce85c26bc2ea107e
parent30827969b03e7745dd199dca48847604d99b70b3
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>
drivers/net/arcnet/com20020-pci.c