summaryrefslogtreecommitdiff
path: root/drivers/scsi/a4000t.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-02 15:29:53 +0900
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-06-24 19:44:18 +0200
commit70695baa49ba44e0bb85dfef2af6a311c6c062c7 (patch)
tree78c6deceaf67fad2e6893c07ba74cb6db7733876 /drivers/scsi/a4000t.c
parentd346a5db02fc16263b44eb511fcb260265e3ef77 (diff)
[SCSI] a4000t: use module_platform_driver_probe()
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>
Diffstat (limited to 'drivers/scsi/a4000t.c')
-rw-r--r--drivers/scsi/a4000t.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c
index 23c76f41883c..70c521f79f7c 100644
--- a/drivers/scsi/a4000t.c
+++ b/drivers/scsi/a4000t.c
@@ -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>");