aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/rpckbd.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 14:08:43 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:43 -0500
commit24d2469a33112bbce008a15bc4210cc60ffd7443 (patch)
tree59ff3ee0827c39fca1ca35b92859b15b0a707ae0 /drivers/input/serio/rpckbd.c
parent4fcdeac5acf4a7a81efc409c02a79a76fa339c27 (diff)
Input: serio - use macro module_platform_driver()
Commit 940ab88962bc1aff3273a8356d64577a6e386736 introduced a new macro to save some platform_driver boilerplate code. Use it. Signed-off-by: JJ Ding <dgdunix@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/serio/rpckbd.c')
-rw-r--r--drivers/input/serio/rpckbd.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/serio/rpckbd.c b/drivers/input/serio/rpckbd.c
index 7ec3c97dc1b9..8b44ddc8041c 100644
--- a/drivers/input/serio/rpckbd.c
+++ b/drivers/input/serio/rpckbd.c
@@ -143,16 +143,4 @@ static struct platform_driver rpckbd_driver = {
143 .owner = THIS_MODULE, 143 .owner = THIS_MODULE,
144 }, 144 },
145}; 145};
146 146module_platform_driver(rpckbd_driver);
147static int __init rpckbd_init(void)
148{
149 return platform_driver_register(&rpckbd_driver);
150}
151
152static void __exit rpckbd_exit(void)
153{
154 platform_driver_unregister(&rpckbd_driver);
155}
156
157module_init(rpckbd_init);
158module_exit(rpckbd_exit);