[SCSI] a4000t: use module_platform_driver_probe()
authorJingoo Han <jg1.han@samsung.com>
Thu, 2 May 2013 06:29:53 +0000 (15:29 +0900)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 24 Jun 2013 17:44:18 +0000 (19:44 +0200)
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/scsi/a4000t.c

index 23c76f4..70c521f 100644 (file)
@@ -116,20 +116,7 @@ static struct platform_driver amiga_a4000t_scsi_driver = {
        },
 };
 
-static int __init amiga_a4000t_scsi_init(void)
-{
-       return platform_driver_probe(&amiga_a4000t_scsi_driver,
-                                    amiga_a4000t_scsi_probe);
-}
-
-module_init(amiga_a4000t_scsi_init);
-
-static void __exit amiga_a4000t_scsi_exit(void)
-{
-       platform_driver_unregister(&amiga_a4000t_scsi_driver);
-}
-
-module_exit(amiga_a4000t_scsi_exit);
+module_platform_driver_probe(amiga_a4000t_scsi_driver, amiga_a4000t_scsi_probe);
 
 MODULE_AUTHOR("Alan Hourihane <alanh@fairlite.demon.co.uk> / "
              "Kars de Jong <jongk@linux-m68k.org>");