net: cavium: use module_pci_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Mar 2018 12:51:55 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:36:33 +0000 (14:36 -0400)
commit75498aa1aff5dfed0124557dfa0b6b2906b14fa6
tree782d76f22f98d123dd5a349bb99db3784830a9be
parent335ab8ba617ec5bdc0c1595aae875304277e2495
net: cavium: 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/cavium/common/cavium_ptp.c