diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-02 15:29:53 +0900 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-06-24 19:44:18 +0200 |
commit | 70695baa49ba44e0bb85dfef2af6a311c6c062c7 (patch) | |
tree | 78c6deceaf67fad2e6893c07ba74cb6db7733876 | |
parent | d346a5db02fc16263b44eb511fcb260265e3ef77 (diff) | |
download | kernel_goldelico_gta04-70695baa49ba44e0bb85dfef2af6a311c6c062c7.zip kernel_goldelico_gta04-70695baa49ba44e0bb85dfef2af6a311c6c062c7.tar.gz kernel_goldelico_gta04-70695baa49ba44e0bb85dfef2af6a311c6c062c7.tar.bz2 |
[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>
-rw-r--r-- | drivers/scsi/a4000t.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c index 23c76f4..70c521f 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>"); |