From: Elad Wexler <elad.wex...@gmail.com> Driver doesn't do anything special in 'module_init'.
'module_platform_init' makes the code more readable. Signed-off-by: Elad Wexler <elad.wex...@gmail.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 <dilin...@queued.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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/