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

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).