summaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/altera_ps2.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 11:08:43 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-11-30 23:41:43 -0800
commit24d2469a33112bbce008a15bc4210cc60ffd7443 (patch)
tree59ff3ee0827c39fca1ca35b92859b15b0a707ae0 /drivers/input/serio/altera_ps2.c
parent4fcdeac5acf4a7a81efc409c02a79a76fa339c27 (diff)
downloadop-kernel-dev-24d2469a33112bbce008a15bc4210cc60ffd7443.zip
op-kernel-dev-24d2469a33112bbce008a15bc4210cc60ffd7443.tar.gz
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/altera_ps2.c')
-rw-r--r--drivers/input/serio/altera_ps2.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/serio/altera_ps2.c b/drivers/input/serio/altera_ps2.c
index d363dc4..35864c6 100644
--- a/drivers/input/serio/altera_ps2.c
+++ b/drivers/input/serio/altera_ps2.c
@@ -196,18 +196,7 @@ static struct platform_driver altera_ps2_driver = {
.of_match_table = altera_ps2_match,
},
};
-
-static int __init altera_ps2_init(void)
-{
- return platform_driver_register(&altera_ps2_driver);
-}
-module_init(altera_ps2_init);
-
-static void __exit altera_ps2_exit(void)
-{
- platform_driver_unregister(&altera_ps2_driver);
-}
-module_exit(altera_ps2_exit);
+module_platform_driver(altera_ps2_driver);
MODULE_DESCRIPTION("Altera University Program PS2 controller driver");
MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>");
OpenPOWER on IntegriCloud