aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/88pm860x-ts.c
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 14:14:13 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:43 -0500
commitcdcc96e261909eccf596c070116c8b906a42b328 (patch)
tree27446901596bdc384a8c06c7f647a90ed66963fa /drivers/input/touchscreen/88pm860x-ts.c
parent24d2469a33112bbce008a15bc4210cc60ffd7443 (diff)
Input: touchscreen - 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/touchscreen/88pm860x-ts.c')
-rw-r--r--drivers/input/touchscreen/88pm860x-ts.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c
index b3aebc2166ba..05f30b73c3c3 100644
--- a/drivers/input/touchscreen/88pm860x-ts.c
+++ b/drivers/input/touchscreen/88pm860x-ts.c
@@ -217,18 +217,7 @@ static struct platform_driver pm860x_touch_driver = {
217 .probe = pm860x_touch_probe, 217 .probe = pm860x_touch_probe,
218 .remove = __devexit_p(pm860x_touch_remove), 218 .remove = __devexit_p(pm860x_touch_remove),
219}; 219};
220 220module_platform_driver(pm860x_touch_driver);
221static int __init pm860x_touch_init(void)
222{
223 return platform_driver_register(&pm860x_touch_driver);
224}
225module_init(pm860x_touch_init);
226
227static void __exit pm860x_touch_exit(void)
228{
229 platform_driver_unregister(&pm860x_touch_driver);
230}
231module_exit(pm860x_touch_exit);
232 221
233MODULE_DESCRIPTION("Touchscreen driver for Marvell Semiconductor 88PM860x"); 222MODULE_DESCRIPTION("Touchscreen driver for Marvell Semiconductor 88PM860x");
234MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 223MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>");