* [PATCH] pata_samsung_cf: use module_platform_driver_probe()
@ 2013-03-04 8:34 Jingoo Han
2013-03-04 22:14 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-03-04 8:34 UTC (permalink / raw)
To: 'Jeff Garzik'; +Cc: linux-ide, 'Jingoo Han'
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/ata/pata_samsung_cf.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 70b0e01..6ef27e9 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -661,18 +661,7 @@ static struct platform_driver pata_s3c_driver = {
},
};
-static int __init pata_s3c_init(void)
-{
- return platform_driver_probe(&pata_s3c_driver, pata_s3c_probe);
-}
-
-static void __exit pata_s3c_exit(void)
-{
- platform_driver_unregister(&pata_s3c_driver);
-}
-
-module_init(pata_s3c_init);
-module_exit(pata_s3c_exit);
+module_platform_driver_probe(pata_s3c_driver, pata_s3c_probe);
MODULE_AUTHOR("Abhilash Kesavan, <a.kesavan@samsung.com>");
MODULE_DESCRIPTION("low-level driver for Samsung PATA controller");
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pata_samsung_cf: use module_platform_driver_probe()
2013-03-04 8:34 [PATCH] pata_samsung_cf: use module_platform_driver_probe() Jingoo Han
@ 2013-03-04 22:14 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2013-03-04 22:14 UTC (permalink / raw)
To: Jingoo Han; +Cc: linux-ide
On 03/04/2013 03:34 AM, Jingoo Han wrote:
> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/ata/pata_samsung_cf.c | 13 +------------
> 1 files changed, 1 insertions(+), 12 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-04 22:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 8:34 [PATCH] pata_samsung_cf: use module_platform_driver_probe() Jingoo Han
2013-03-04 22:14 ` Jeff Garzik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.