summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a3000.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-02 08:30:31 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-06-24 19:44:18 +0200
commita915b84a7b59fa7d5cdcb210abc49bd445b58124 (patch)
tree116eacf73bb0fa987392e9348ddf252c1cd4e056 /drivers/scsi/a3000.c
parent[SCSI] a4000t: use module_platform_driver_probe() (diff)
downloadlinux-a915b84a7b59fa7d5cdcb210abc49bd445b58124.tar.xz
linux-a915b84a7b59fa7d5cdcb210abc49bd445b58124.zip
[SCSI] a3000: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/scsi/a3000.c')
-rw-r--r--drivers/scsi/a3000.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c
index c487916a9d45..c0f4f4290dd6 100644
--- a/drivers/scsi/a3000.c
+++ b/drivers/scsi/a3000.c
@@ -280,18 +280,7 @@ static struct platform_driver amiga_a3000_scsi_driver = {
},
};
-static int __init amiga_a3000_scsi_init(void)
-{
- return platform_driver_probe(&amiga_a3000_scsi_driver,
- amiga_a3000_scsi_probe);
-}
-module_init(amiga_a3000_scsi_init);
-
-static void __exit amiga_a3000_scsi_exit(void)
-{
- platform_driver_unregister(&amiga_a3000_scsi_driver);
-}
-module_exit(amiga_a3000_scsi_exit);
+module_platform_driver_probe(amiga_a3000_scsi_driver, amiga_a3000_scsi_probe);
MODULE_DESCRIPTION("Amiga 3000 built-in SCSI");
MODULE_LICENSE("GPL");