Skip to content

Commit

Permalink
[SCSI] a4000t: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and geertu committed Jun 24, 2013
1 parent d346a5d commit 70695ba
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/scsi/a4000t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
Expand Down

0 comments on commit 70695ba

Please sign in to comment.