Skip to contentSkip to conversation

a3000: use module_platform_driver_probe()

PATCH RESEND In review Jingoo Han 2 participants 2 messages May 2, 2013 – May 13, 2013 SCSI

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

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.

---
 drivers/scsi/a3000.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/scsi/a3000.c +1 -12
index c487916..c0f4f42 100644
@@ -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
#1 lore raw
Quoted 5 lines · Jingoo Han

This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler.

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