]> git.baikalelectronics.ru Git - kernel.git/commit
net: fealnx: use module_pci_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 7 Apr 2021 15:07:12 +0000 (15:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 22:15:02 +0000 (15:15 -0700)
commit3cd52c1e32fe7dfee09815ced702db9ee9f84ec9
tree72dee12844d4c639da1a50b38cfe68e50c0e45d8
parent6381c45b28385451c5bb54d131475d38849639f3
net: fealnx: use module_pci_driver to simplify the code

Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/fealnx.c