* [PATCH RESEND 2/2] [SCSI] a3000: use module_platform_driver_probe()
@ 2013-05-02 6:30 Jingoo Han
2013-05-13 9:28 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-05-02 6:30 UTC (permalink / raw)
To: 'James Bottomley'
Cc: linux-scsi, 'Geert Uytterhoeven', Jingoo Han
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/scsi/a3000.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c
index c487916..c0f4f42 100644
--- a/drivers/scsi/a3000.c
+++ b/drivers/scsi/a3000.c
@@ -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");
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND 2/2] [SCSI] a3000: use module_platform_driver_probe()
2013-05-02 6:30 [PATCH RESEND 2/2] [SCSI] a3000: use module_platform_driver_probe() Jingoo Han
@ 2013-05-13 9:28 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2013-05-13 9:28 UTC (permalink / raw)
To: Jingoo Han; +Cc: James Bottomley, scsi
On Thu, May 2, 2013 at 8:30 AM, Jingoo Han <jg1.han@samsung.com> wrote:
> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
>
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
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 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-13 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 6:30 [PATCH RESEND 2/2] [SCSI] a3000: use module_platform_driver_probe() Jingoo Han
2013-05-13 9:28 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox