[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1380392082-23572-1-git-send-email-elad.wexler@gmail.com>
Date: Sat, 28 Sep 2013 21:14:42 +0300
From: elad.wexler@...il.com
To: arnd@...db.de, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Elad Wexler <elad.wexler@...il.com>
Subject: [PATCH] misc: cs5535-mfgpt: Replace 'module_init' with 'module_platform_driver'
From: Elad Wexler <elad.wexler@...il.com>
Driver doesn't do anything special in 'module_init'.
'module_platform_init' makes the code more readable.
Signed-off-by: Elad Wexler <elad.wexler@...il.com>
---
drivers/misc/cs5535-mfgpt.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/misc/cs5535-mfgpt.c b/drivers/misc/cs5535-mfgpt.c
index effd8c6..abf1a3c 100644
--- a/drivers/misc/cs5535-mfgpt.c
+++ b/drivers/misc/cs5535-mfgpt.c
@@ -370,13 +370,7 @@ static struct platform_driver cs5535_mfgpt_driver = {
.probe = cs5535_mfgpt_probe,
};
-
-static int __init cs5535_mfgpt_init(void)
-{
- return platform_driver_register(&cs5535_mfgpt_driver);
-}
-
-module_init(cs5535_mfgpt_init);
+module_platform_driver(cs5535_mfgpt_driver);
MODULE_AUTHOR("Andres Salomon <dilinger@...ued.net>");
MODULE_DESCRIPTION("CS5535/CS5536 MFGPT timer driver");
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists