]> git.baikalelectronics.ru Git - kernel.git/commit
enic: use module_pci_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 7 Apr 2021 15:07:05 +0000 (15:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 22:15:01 +0000 (15:15 -0700)
commit25d07d9029353c1596e3b588226224e1795ae998
treec4fd047e8e3fad121c25bfbd0d0cb5f3c56cac8c
parent226a22b84aec53ee70db23ba81d555b3e43d19a1
enic: 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/cisco/enic/enic_main.c