Message ID | 000401ceb299$d66e0d00$834a2700$%han@samsung.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 3f831de..7303d21 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -1493,15 +1493,4 @@ static struct pci_driver mlx5_ib_driver = { .remove = remove_one }; -static int __init mlx5_ib_init(void) -{ - return pci_register_driver(&mlx5_ib_driver); -} - -static void __exit mlx5_ib_cleanup(void) -{ - pci_unregister_driver(&mlx5_ib_driver); -} - -module_init(mlx5_ib_init); -module_exit(mlx5_ib_cleanup); +module_pci_driver(mlx5_ib_driver);
Use module_pci_driver() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/infiniband/hw/mlx5/main.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)