diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-04-21 12:58:33 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-02 05:29:41 +0200 |
commit | 5f1c7211964d8da54e65da768b95a43e57f39193 (patch) | |
tree | 76f4b2a642e08d52d3eb7279a424f9fc473229e2 /drivers/scsi/am53c974.c | |
parent | scsi: scsi_transport_sas: don't bounce highmem pages for the smp handler (diff) | |
download | linux-5f1c7211964d8da54e65da768b95a43e57f39193.tar.xz linux-5f1c7211964d8da54e65da768b95a43e57f39193.zip |
scsi: am53c974: Use module_pci_driver
Remove boilerplate code by using macro module_pci_driver.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/am53c974.c')
-rw-r--r-- | drivers/scsi/am53c974.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c index beea30e5a34a..d81ca66e24d6 100644 --- a/drivers/scsi/am53c974.c +++ b/drivers/scsi/am53c974.c @@ -556,15 +556,7 @@ static struct pci_driver am53c974_driver = { .remove = pci_esp_remove_one, }; -static int __init am53c974_module_init(void) -{ - return pci_register_driver(&am53c974_driver); -} - -static void __exit am53c974_module_exit(void) -{ - pci_unregister_driver(&am53c974_driver); -} +module_pci_driver(am53c974_driver); MODULE_DESCRIPTION("AM53C974 SCSI driver"); MODULE_AUTHOR("Hannes Reinecke <hare@suse.de>"); @@ -577,6 +569,3 @@ MODULE_PARM_DESC(am53c974_debug, "Enable debugging"); module_param(am53c974_fenab, bool, 0444); MODULE_PARM_DESC(am53c974_fenab, "Enable 24-bit DMA transfer sizes"); - -module_init(am53c974_module_init); -module_exit(am53c974_module_exit); |