diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-04 02:50:17 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-04 12:25:43 -0400 |
commit | 65ac9f7a23c934ee8c40dc20955e75db4924bfea (patch) | |
tree | 7baa3439e9b0a774073473cccef6960e7f77bc6e /drivers/input/touchscreen/elo.c | |
parent | fa7f86d157781515b74d658120552eafd890f4de (diff) |
Input: serio - use module_serio_driver
This patch converts the drivers in drivers/input/* to use
module_serio_driver() macro which makes the code smaller and
a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/elo.c')
-rw-r--r-- | drivers/input/touchscreen/elo.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c index 486d31ba9c09..957423d1471d 100644 --- a/drivers/input/touchscreen/elo.c +++ b/drivers/input/touchscreen/elo.c | |||
@@ -405,19 +405,4 @@ static struct serio_driver elo_drv = { | |||
405 | .disconnect = elo_disconnect, | 405 | .disconnect = elo_disconnect, |
406 | }; | 406 | }; |
407 | 407 | ||
408 | /* | 408 | module_serio_driver(elo_drv); |
409 | * The functions for inserting/removing us as a module. | ||
410 | */ | ||
411 | |||
412 | static int __init elo_init(void) | ||
413 | { | ||
414 | return serio_register_driver(&elo_drv); | ||
415 | } | ||
416 | |||
417 | static void __exit elo_exit(void) | ||
418 | { | ||
419 | serio_unregister_driver(&elo_drv); | ||
420 | } | ||
421 | |||
422 | module_init(elo_init); | ||
423 | module_exit(elo_exit); | ||