summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/gpio_mouse.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 11:08:41 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-11-30 23:41:42 -0800
commit4fcdeac5acf4a7a81efc409c02a79a76fa339c27 (patch)
tree3dec82bc2c8853f06a2f9de2c46f1d330d5a844a /drivers/input/mouse/gpio_mouse.c
parent840a746be2beddd2ada0e5ba772147316d071f25 (diff)
downloadblackbird-op-linux-4fcdeac5acf4a7a81efc409c02a79a76fa339c27.tar.gz
blackbird-op-linux-4fcdeac5acf4a7a81efc409c02a79a76fa339c27.zip
Input: mouse - 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/mouse/gpio_mouse.c')
-rw-r--r--drivers/input/mouse/gpio_mouse.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/mouse/gpio_mouse.c b/drivers/input/mouse/gpio_mouse.c
index 58902fbb9896..a9ad8e1402be 100644
--- a/drivers/input/mouse/gpio_mouse.c
+++ b/drivers/input/mouse/gpio_mouse.c
@@ -178,18 +178,7 @@ static struct platform_driver gpio_mouse_device_driver = {
.owner = THIS_MODULE,
}
};
-
-static int __init gpio_mouse_init(void)
-{
- return platform_driver_register(&gpio_mouse_device_driver);
-}
-module_init(gpio_mouse_init);
-
-static void __exit gpio_mouse_exit(void)
-{
- platform_driver_unregister(&gpio_mouse_device_driver);
-}
-module_exit(gpio_mouse_exit);
+module_platform_driver(gpio_mouse_device_driver);
MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
MODULE_DESCRIPTION("GPIO mouse driver");
OpenPOWER on IntegriCloud