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 |
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>");