[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>
This commit is contained in:
Jingoo Han 2013-05-02 15:29:53 +09:00 committed by Geert Uytterhoeven
parent d346a5db02
commit 70695baa49
1 changed files with 1 additions and 14 deletions

View 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>");