summaryrefslogtreecommitdiff
path: root/drivers/scsi/a100u2w.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-04-21 13:58:35 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-02 06:31:40 +0300
commit9407253f4af772464608c0c15a6dca47b06cbd31 (patch)
tree6a426c66aeede3f931d0487a3e775652918ab5f4 /drivers/scsi/a100u2w.c
parent3e1bbc5685677eda6c19e3139aa7a6a7a9eb4066 (diff)
downloadlinux-9407253f4af772464608c0c15a6dca47b06cbd31.tar.xz
scsi: a100u2w: 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/a100u2w.c')
-rw-r--r--drivers/scsi/a100u2w.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index 8086bd0ac9fd..b2942ec3d455 100644
--- a/drivers/scsi/a100u2w.c
+++ b/drivers/scsi/a100u2w.c
@@ -1222,19 +1222,8 @@ static struct pci_driver inia100_pci_driver = {
.remove = inia100_remove_one,
};
-static int __init inia100_init(void)
-{
- return pci_register_driver(&inia100_pci_driver);
-}
-
-static void __exit inia100_exit(void)
-{
- pci_unregister_driver(&inia100_pci_driver);
-}
+module_pci_driver(inia100_pci_driver);
MODULE_DESCRIPTION("Initio A100U2W SCSI driver");
MODULE_AUTHOR("Initio Corporation");
MODULE_LICENSE("Dual BSD/GPL");
-
-module_init(inia100_init);
-module_exit(inia100_exit);