diff options
author | JJ Ding <dgdunix@gmail.com> | 2011-11-29 20:08:43 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-01 08:41:43 +0100 |
commit | 24d2469a33112bbce008a15bc4210cc60ffd7443 (patch) | |
tree | 59ff3ee0827c39fca1ca35b92859b15b0a707ae0 /drivers/input/serio/at32psif.c | |
parent | Input: mouse - use macro module_platform_driver() (diff) | |
download | linux-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/at32psif.c')
-rw-r--r-- | drivers/input/serio/at32psif.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index 95280f9207e1..421a7442e464 100644 --- a/drivers/input/serio/at32psif.c +++ b/drivers/input/serio/at32psif.c @@ -358,19 +358,7 @@ static struct platform_driver psif_driver = { .suspend = psif_suspend, .resume = psif_resume, }; - -static int __init psif_init(void) -{ - return platform_driver_probe(&psif_driver, psif_probe); -} - -static void __exit psif_exit(void) -{ - platform_driver_unregister(&psif_driver); -} - -module_init(psif_init); -module_exit(psif_exit); +module_platform_driver(psif_driver); MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); MODULE_DESCRIPTION("Atmel AVR32 PSIF PS/2 driver"); |