summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a100u2w.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-04-21 12:58:35 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-02 05:31:40 +0200
commit9407253f4af772464608c0c15a6dca47b06cbd31 (patch)
tree6a426c66aeede3f931d0487a3e775652918ab5f4 /drivers/scsi/a100u2w.c
parentscsi: wd719x: Use module_pci_driver (diff)
downloadlinux-9407253f4af772464608c0c15a6dca47b06cbd31.tar.xz
linux-9407253f4af772464608c0c15a6dca47b06cbd31.zip
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);