Skip to content

Commit

Permalink
Input: q40kbd - use module_platform_driver_probe macro
Browse files Browse the repository at this point in the history
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed Mar 18, 2013
1 parent 9e984cd commit 07beda4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/input/serio/q40kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,4 @@ static struct platform_driver q40kbd_driver = {
.remove = q40kbd_remove,
};

static int __init q40kbd_init(void)
{
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);
module_platform_driver_probe(q40kbd_driver, q40kbd_probe);

0 comments on commit 07beda4

Please sign in to comment.