]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/IOV: Simplify pci-pf-stub with module_pci_driver()
authorLiu Shixin <liushixin2@huawei.com>
Thu, 17 Sep 2020 07:10:42 +0000 (15:10 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 17 Sep 2020 17:40:20 +0000 (12:40 -0500)
commit36fcadc61f749651502fd62e295b611614f57e22
tree25ef131c31af4084c7f62d9027dd8dedc407762d
parent1e632589568e201f0a1efd99d59414d1d86b171a
PCI/IOV: Simplify pci-pf-stub with module_pci_driver()

Use the module_pci_driver() macro to make the code simpler by eliminating
module_init() and module_exit() calls.

Link: https://lore.kernel.org/r/20200917071042.1909191-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
drivers/pci/pci-pf-stub.c