Commit 6b0bc60b authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

Input: davinci_keyscan - use module_platform_driver_probe macro

module_platform_driver_probe() simplifies the code by eliminating
boilerplate code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ba52a7fc
...@@ -329,17 +329,7 @@ static struct platform_driver davinci_ks_driver = { ...@@ -329,17 +329,7 @@ static struct platform_driver davinci_ks_driver = {
.remove = davinci_ks_remove, .remove = davinci_ks_remove,
}; };
static int __init davinci_ks_init(void) module_platform_driver_probe(davinci_ks_driver, davinci_ks_probe);
{
return platform_driver_probe(&davinci_ks_driver, davinci_ks_probe);
}
module_init(davinci_ks_init);
static void __exit davinci_ks_exit(void)
{
platform_driver_unregister(&davinci_ks_driver);
}
module_exit(davinci_ks_exit);
MODULE_AUTHOR("Miguel Aguilar"); MODULE_AUTHOR("Miguel Aguilar");
MODULE_DESCRIPTION("Texas Instruments DaVinci Key Scan Driver"); MODULE_DESCRIPTION("Texas Instruments DaVinci Key Scan Driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment