diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-02 02:30:31 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-06-24 13:44:18 -0400 |
commit | a915b84a7b59fa7d5cdcb210abc49bd445b58124 (patch) | |
tree | 116eacf73bb0fa987392e9348ddf252c1cd4e056 /drivers/scsi/a3000.c | |
parent | 70695baa49ba44e0bb85dfef2af6a311c6c062c7 (diff) |
[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.c | 13 |
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 = { | |||
280 | }, | 280 | }, |
281 | }; | 281 | }; |
282 | 282 | ||
283 | static int __init amiga_a3000_scsi_init(void) | 283 | module_platform_driver_probe(amiga_a3000_scsi_driver, amiga_a3000_scsi_probe); |
284 | { | ||
285 | return platform_driver_probe(&amiga_a3000_scsi_driver, | ||
286 | amiga_a3000_scsi_probe); | ||
287 | } | ||
288 | module_init(amiga_a3000_scsi_init); | ||
289 | |||
290 | static void __exit amiga_a3000_scsi_exit(void) | ||
291 | { | ||
292 | platform_driver_unregister(&amiga_a3000_scsi_driver); | ||
293 | } | ||
294 | module_exit(amiga_a3000_scsi_exit); | ||
295 | 284 | ||
296 | MODULE_DESCRIPTION("Amiga 3000 built-in SCSI"); | 285 | MODULE_DESCRIPTION("Amiga 3000 built-in SCSI"); |
297 | MODULE_LICENSE("GPL"); | 286 | MODULE_LICENSE("GPL"); |