Commit 07beda4f authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

Input: q40kbd - use module_platform_driver_probe macro

module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9e984cdd
...@@ -193,15 +193,4 @@ static struct platform_driver q40kbd_driver = { ...@@ -193,15 +193,4 @@ static struct platform_driver q40kbd_driver = {
.remove = q40kbd_remove, .remove = q40kbd_remove,
}; };
static int __init q40kbd_init(void) module_platform_driver_probe(q40kbd_driver, q40kbd_probe);
{
return platform_driver_probe(&q40kbd_driver, q40kbd_probe);
}
static void __exit q40kbd_exit(void)
{
platform_driver_unregister(&q40kbd_driver);
}
module_init(q40kbd_init);
module_exit(q40kbd_exit);
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