a3000: use module_platform_driver_probe()
PATCH RESEND 2/2 a3000: 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 <[email protected]>
--- drivers/scsi/a3000.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/scsi/a3000.c +1 -12
@@ -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" );
Signature · 1 line
1.7.2.5
Quoted 5 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>
James, will you take this one? Or shall I queue it in the m68k tree? Thx!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds