From: dingsenjie <dingsenjie@xxxxxxxxxx> Simplify the code by using module_platform_driver macro for sgiwd93. Signed-off-by: dingsenjie <dingsenjie@xxxxxxxxxx> --- drivers/scsi/sgiwd93.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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@xxxxxxxxxxxxxx>"); -- 1.9.1