diff mbox series

drivers/scsi: convert to use module_platform_driver in sgiwd93.c

Message ID 20210203013543.34316-1-dingsenjie@163.com
State New
Headers show
Series drivers/scsi: convert to use module_platform_driver in sgiwd93.c | expand

Commit Message

dingsenjie@163.com Feb. 3, 2021, 1:35 a.m. UTC
From: dingsenjie <dingsenjie@yulong.com>

Simplify the code by using module_platform_driver macro for sgiwd93.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
 drivers/scsi/sgiwd93.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c
index cf1030c..7e99a53 100644
--- a/drivers/scsi/sgiwd93.c
+++ b/drivers/scsi/sgiwd93.c
@@ -305,18 +305,7 @@  static int sgiwd93_remove(struct platform_device *pdev)
 	}
 };
 
-static int __init sgiwd93_module_init(void)
-{
-	return platform_driver_register(&sgiwd93_driver);
-}
-
-static void __exit sgiwd93_module_exit(void)
-{
-	return platform_driver_unregister(&sgiwd93_driver);
-}
-
-module_init(sgiwd93_module_init);
-module_exit(sgiwd93_module_exit);
+module_platform_driver(sgiwd93_driver);
 
 MODULE_DESCRIPTION("SGI WD33C93 driver");
 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");