diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-12 00:42:18 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-12 02:45:35 -0500 |
commit | 1def7afa748b964aeb0033d0cb78aabf3d3f3683 (patch) | |
tree | 4d0cfa846fad8ec941ccc633a796deb41ff23514 /drivers/input | |
parent | e40ec6ff2f42b5516d77a5c34bfa6a9ce45834f4 (diff) |
Input: altera_ps2 - add annotations to probe and remove methods
Mark altera_ps2_probe() as __devinit and altera_ps2_remove() as __devexit
so that they can be discarded when not needed.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/altera_ps2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/serio/altera_ps2.c b/drivers/input/serio/altera_ps2.c index b328185b1cc2..457da76d4c83 100644 --- a/drivers/input/serio/altera_ps2.c +++ b/drivers/input/serio/altera_ps2.c | |||
@@ -79,7 +79,7 @@ static void altera_ps2_close(struct serio *io) | |||
79 | /* | 79 | /* |
80 | * Add one device to this driver. | 80 | * Add one device to this driver. |
81 | */ | 81 | */ |
82 | static int altera_ps2_probe(struct platform_device *pdev) | 82 | static int __devinit altera_ps2_probe(struct platform_device *pdev) |
83 | { | 83 | { |
84 | struct ps2if *ps2if; | 84 | struct ps2if *ps2if; |
85 | struct serio *serio; | 85 | struct serio *serio; |
@@ -155,7 +155,7 @@ static int altera_ps2_probe(struct platform_device *pdev) | |||
155 | /* | 155 | /* |
156 | * Remove one device from this driver. | 156 | * Remove one device from this driver. |
157 | */ | 157 | */ |
158 | static int altera_ps2_remove(struct platform_device *pdev) | 158 | static int __devexit altera_ps2_remove(struct platform_device *pdev) |
159 | { | 159 | { |
160 | struct ps2if *ps2if = platform_get_drvdata(pdev); | 160 | struct ps2if *ps2if = platform_get_drvdata(pdev); |
161 | 161 | ||
@@ -175,7 +175,7 @@ static int altera_ps2_remove(struct platform_device *pdev) | |||
175 | */ | 175 | */ |
176 | static struct platform_driver altera_ps2_driver = { | 176 | static struct platform_driver altera_ps2_driver = { |
177 | .probe = altera_ps2_probe, | 177 | .probe = altera_ps2_probe, |
178 | .remove = altera_ps2_remove, | 178 | .remove = __devexit_p(altera_ps2_remove), |
179 | .driver = { | 179 | .driver = { |
180 | .name = DRV_NAME, | 180 | .name = DRV_NAME, |
181 | .owner = THIS_MODULE, | 181 | .owner = THIS_MODULE, |