diff options
author | JJ Ding <dgdunix@gmail.com> | 2011-11-29 14:08:43 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-01 02:41:43 -0500 |
commit | 24d2469a33112bbce008a15bc4210cc60ffd7443 (patch) | |
tree | 59ff3ee0827c39fca1ca35b92859b15b0a707ae0 /drivers/input/serio/rpckbd.c | |
parent | 4fcdeac5acf4a7a81efc409c02a79a76fa339c27 (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.c | 14 |
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 | 146 | module_platform_driver(rpckbd_driver); | |
147 | static int __init rpckbd_init(void) | ||
148 | { | ||
149 | return platform_driver_register(&rpckbd_driver); | ||
150 | } | ||
151 | |||
152 | static void __exit rpckbd_exit(void) | ||
153 | { | ||
154 | platform_driver_unregister(&rpckbd_driver); | ||
155 | } | ||
156 | |||
157 | module_init(rpckbd_init); | ||
158 | module_exit(rpckbd_exit); | ||