linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe()
@ 2013-03-05  2:25 Jingoo Han
  2013-03-05  2:26 ` [PATCH 2/3] ide: tx4939ide: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jingoo Han @ 2013-03-05  2:25 UTC (permalink / raw)
  To: 'David S. Miller'; +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/ide/tx4938ide.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/ide/tx4938ide.c b/drivers/ide/tx4938ide.c
index 91d49dd..ede8575 100644
--- a/drivers/ide/tx4938ide.c
+++ b/drivers/ide/tx4938ide.c
@@ -203,18 +203,7 @@ static struct platform_driver tx4938ide_driver = {
 	.remove = __exit_p(tx4938ide_remove),
 };
 
-static int __init tx4938ide_init(void)
-{
-	return platform_driver_probe(&tx4938ide_driver, tx4938ide_probe);
-}
-
-static void __exit tx4938ide_exit(void)
-{
-	platform_driver_unregister(&tx4938ide_driver);
-}
-
-module_init(tx4938ide_init);
-module_exit(tx4938ide_exit);
+module_platform_driver_probe(tx4938ide_driver, tx4938ide_probe);
 
 MODULE_DESCRIPTION("TX4938 internal IDE driver");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] ide: tx4939ide: use module_platform_driver_probe()
  2013-03-05  2:25 [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe() Jingoo Han
@ 2013-03-05  2:26 ` Jingoo Han
  2013-03-08 17:39   ` David Miller
  2013-03-05  2:27 ` [PATCH 3/3] ide: gayle: " Jingoo Han
  2013-03-08 17:39 ` [PATCH 1/3] ide: tx4938ide: " David Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2013-03-05  2:26 UTC (permalink / raw)
  To: 'David S. Miller'; +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/ide/tx4939ide.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c
index c0ab800..4ecdee5 100644
--- a/drivers/ide/tx4939ide.c
+++ b/drivers/ide/tx4939ide.c
@@ -624,18 +624,7 @@ static struct platform_driver tx4939ide_driver = {
 	.resume = tx4939ide_resume,
 };
 
-static int __init tx4939ide_init(void)
-{
-	return platform_driver_probe(&tx4939ide_driver, tx4939ide_probe);
-}
-
-static void __exit tx4939ide_exit(void)
-{
-	platform_driver_unregister(&tx4939ide_driver);
-}
-
-module_init(tx4939ide_init);
-module_exit(tx4939ide_exit);
+module_platform_driver_probe(tx4939ide_driver, tx4939ide_probe);
 
 MODULE_DESCRIPTION("TX4939 internal IDE driver");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] ide: gayle: use module_platform_driver_probe()
  2013-03-05  2:25 [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe() Jingoo Han
  2013-03-05  2:26 ` [PATCH 2/3] ide: tx4939ide: " Jingoo Han
@ 2013-03-05  2:27 ` Jingoo Han
  2013-03-08 17:39   ` David Miller
  2013-03-08 17:39 ` [PATCH 1/3] ide: tx4938ide: " David Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2013-03-05  2:27 UTC (permalink / raw)
  To: 'David S. Miller'; +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/ide/gayle.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c
index 51beb85..0a8440a 100644
--- a/drivers/ide/gayle.c
+++ b/drivers/ide/gayle.c
@@ -183,20 +183,7 @@ static struct platform_driver amiga_gayle_ide_driver = {
 	},
 };
 
-static int __init amiga_gayle_ide_init(void)
-{
-	return platform_driver_probe(&amiga_gayle_ide_driver,
-				     amiga_gayle_ide_probe);
-}
-
-module_init(amiga_gayle_ide_init);
-
-static void __exit amiga_gayle_ide_exit(void)
-{
-	platform_driver_unregister(&amiga_gayle_ide_driver);
-}
-
-module_exit(amiga_gayle_ide_exit);
+module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe);
 
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:amiga-gayle-ide");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe()
  2013-03-05  2:25 [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe() Jingoo Han
  2013-03-05  2:26 ` [PATCH 2/3] ide: tx4939ide: " Jingoo Han
  2013-03-05  2:27 ` [PATCH 3/3] ide: gayle: " Jingoo Han
@ 2013-03-08 17:39 ` David Miller
  2 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2013-03-08 17:39 UTC (permalink / raw)
  To: jg1.han; +Cc: linux-ide

From: Jingoo Han <jg1.han@samsung.com>
Date: Tue, 05 Mar 2013 11:25:46 +0900

> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] ide: tx4939ide: use module_platform_driver_probe()
  2013-03-05  2:26 ` [PATCH 2/3] ide: tx4939ide: " Jingoo Han
@ 2013-03-08 17:39   ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2013-03-08 17:39 UTC (permalink / raw)
  To: jg1.han; +Cc: linux-ide

From: Jingoo Han <jg1.han@samsung.com>
Date: Tue, 05 Mar 2013 11:26:53 +0900

> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] ide: gayle: use module_platform_driver_probe()
  2013-03-05  2:27 ` [PATCH 3/3] ide: gayle: " Jingoo Han
@ 2013-03-08 17:39   ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2013-03-08 17:39 UTC (permalink / raw)
  To: jg1.han; +Cc: linux-ide

From: Jingoo Han <jg1.han@samsung.com>
Date: Tue, 05 Mar 2013 11:27:36 +0900

> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-08 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05  2:25 [PATCH 1/3] ide: tx4938ide: use module_platform_driver_probe() Jingoo Han
2013-03-05  2:26 ` [PATCH 2/3] ide: tx4939ide: " Jingoo Han
2013-03-08 17:39   ` David Miller
2013-03-05  2:27 ` [PATCH 3/3] ide: gayle: " Jingoo Han
2013-03-08 17:39   ` David Miller
2013-03-08 17:39 ` [PATCH 1/3] ide: tx4938ide: " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).