]> 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)
commit3796ecdeebbc3eeb81c6c2a0fef99f2b19456aee
tree72dee12844d4c639da1a50b38cfe68e50c0e45d8
parent0c15a02f41b4841733f41ab41d56123aaa09c384
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