]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31b126f03ddae11cf3d4ed94bb8b552d2a90f068
tree782d76f22f98d123dd5a349bb99db3784830a9be
parent6a7288c3aa98d9748c180fbfce4cbbcf7f96449f
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