vfio/mlx5: Switch to use module_pci_driver() macro
authorShang XiaoJing <shangxiaojing@huawei.com>
Thu, 22 Sep 2022 12:35:07 +0000 (20:35 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 9 Nov 2022 23:38:31 +0000 (16:38 -0700)
commitcd48ebc5c4f2e94830b238f035ebf04f1c3a4433
treedfe3aafd05032b3154e5294063f12e89abaaf4db
parenta39a1466dae5e3ed0dd7c03334a60894e4d1f334
vfio/mlx5: Switch to use module_pci_driver() macro

Since pci provides the helper macro module_pci_driver(), we may replace
the module_init/exit with it.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220922123507.11222-1-shangxiaojing@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/main.c