diff options
author | JJ Ding <dgdunix@gmail.com> | 2011-11-29 14:14:13 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-01 02:41:43 -0500 |
commit | cdcc96e261909eccf596c070116c8b906a42b328 (patch) | |
tree | 27446901596bdc384a8c06c7f647a90ed66963fa /drivers/input/touchscreen/da9034-ts.c | |
parent | 24d2469a33112bbce008a15bc4210cc60ffd7443 (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/da9034-ts.c')
-rw-r--r-- | drivers/input/touchscreen/da9034-ts.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/touchscreen/da9034-ts.c b/drivers/input/touchscreen/da9034-ts.c index 2b72a5923c16..36b65cf10d7f 100644 --- a/drivers/input/touchscreen/da9034-ts.c +++ b/drivers/input/touchscreen/da9034-ts.c | |||
@@ -379,18 +379,7 @@ static struct platform_driver da9034_touch_driver = { | |||
379 | .probe = da9034_touch_probe, | 379 | .probe = da9034_touch_probe, |
380 | .remove = __devexit_p(da9034_touch_remove), | 380 | .remove = __devexit_p(da9034_touch_remove), |
381 | }; | 381 | }; |
382 | 382 | module_platform_driver(da9034_touch_driver); | |
383 | static int __init da9034_touch_init(void) | ||
384 | { | ||
385 | return platform_driver_register(&da9034_touch_driver); | ||
386 | } | ||
387 | module_init(da9034_touch_init); | ||
388 | |||
389 | static void __exit da9034_touch_exit(void) | ||
390 | { | ||
391 | platform_driver_unregister(&da9034_touch_driver); | ||
392 | } | ||
393 | module_exit(da9034_touch_exit); | ||
394 | 383 | ||
395 | MODULE_DESCRIPTION("Touchscreen driver for Dialog Semiconductor DA9034"); | 384 | MODULE_DESCRIPTION("Touchscreen driver for Dialog Semiconductor DA9034"); |
396 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>, Bin Yang <bin.yang@marvell.com>"); | 385 | MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>, Bin Yang <bin.yang@marvell.com>"); |