summaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/xilinx_ps2.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 20:08:43 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 08:41:43 +0100
commit24d2469a33112bbce008a15bc4210cc60ffd7443 (patch)
tree59ff3ee0827c39fca1ca35b92859b15b0a707ae0 /drivers/input/serio/xilinx_ps2.c
parentInput: mouse - use macro module_platform_driver() (diff)
downloadlinux-24d2469a33112bbce008a15bc4210cc60ffd7443.tar.xz
linux-24d2469a33112bbce008a15bc4210cc60ffd7443.zip
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/xilinx_ps2.c')
-rw-r--r--drivers/input/serio/xilinx_ps2.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c
index d64c5a43aaad..127c391deced 100644
--- a/drivers/input/serio/xilinx_ps2.c
+++ b/drivers/input/serio/xilinx_ps2.c
@@ -369,19 +369,7 @@ static struct platform_driver xps2_of_driver = {
.probe = xps2_of_probe,
.remove = __devexit_p(xps2_of_remove),
};
-
-static int __init xps2_init(void)
-{
- return platform_driver_register(&xps2_of_driver);
-}
-
-static void __exit xps2_cleanup(void)
-{
- platform_driver_unregister(&xps2_of_driver);
-}
-
-module_init(xps2_init);
-module_exit(xps2_cleanup);
+module_platform_driver(xps2_of_driver);
MODULE_AUTHOR("Xilinx, Inc.");
MODULE_DESCRIPTION("Xilinx XPS PS/2 driver");