]> git.baikalelectronics.ru Git - kernel.git/commit
net: sundance: use module_pci_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 7 Apr 2021 15:07:09 +0000 (15:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 22:15:01 +0000 (15:15 -0700)
commit6894bbe0ae8ca904c98d304e1277bb33fb0dfcb3
tree22c9689bddd8b00ae29457ce8b9f6a0593e8d853
parent5da25340ddffe0937ce30da26b5366b76783e538
net: sundance: 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/dlink/sundance.c