summaryrefslogtreecommitdiff
path: root/drivers/scsi/sni_53c710.c
diff options
context:
space:
mode:
authorLiu Shixin <liushixin2@huawei.com>2020-09-14 09:54:03 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-03 04:52:54 +0300
commita3b73c96b4aed11658245c258802941641d8048f (patch)
tree623335e357d4b7516802dcb87839579a640e9ba6 /drivers/scsi/sni_53c710.c
parente4c6d2872e25fc101d008235eeace732dd888798 (diff)
downloadlinux-a3b73c96b4aed11658245c258802941641d8048f.tar.xz
scsi: sni_53c710: Use module_platform_driver to simplify the code
Use module_platform_driver() to eliminate boilerplate code. Link: https://lore.kernel.org/r/20200914065403.3726462-1-liushixin2@huawei.com Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sni_53c710.c')
-rw-r--r--drivers/scsi/sni_53c710.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c
index 03d43f016397..9e2e196bc202 100644
--- a/drivers/scsi/sni_53c710.c
+++ b/drivers/scsi/sni_53c710.c
@@ -124,16 +124,4 @@ static struct platform_driver snirm710_driver = {
.name = "snirm_53c710",
},
};
-
-static int __init snirm710_init(void)
-{
- return platform_driver_register(&snirm710_driver);
-}
-
-static void __exit snirm710_exit(void)
-{
- platform_driver_unregister(&snirm710_driver);
-}
-
-module_init(snirm710_init);
-module_exit(snirm710_exit);
+module_platform_driver(snirm710_driver);