From: Sachin Kamat Date: Mon, 18 Mar 2013 04:28:28 +0000 (-0700) Subject: Input: q40kbd - use module_platform_driver_probe macro X-Git-Tag: v3.10-rc3~21^2~4^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07beda4f6d449e045baa776ee3f31979e37d6c64;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Input: q40kbd - use module_platform_driver_probe macro module_platform_driver_probe() eliminates the boilerplate and simplifies the code. Signed-off-by: Sachin Kamat Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/serio/q40kbd.c b/drivers/input/serio/q40kbd.c index 70fe542..436a343 100644 --- a/drivers/input/serio/q40kbd.c +++ b/drivers/input/serio/q40kbd.c @@ -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);