Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+3 -3
drivers/input/serio/altera_ps2.c
··· 79 79 /* 80 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 84 struct ps2if *ps2if; 85 85 struct serio *serio; ··· 155 155 /* 156 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 160 struct ps2if *ps2if = platform_get_drvdata(pdev); 161 161 ··· 175 175 */ 176 176 static struct platform_driver altera_ps2_driver = { 177 177 .probe = altera_ps2_probe, 178 - .remove = altera_ps2_remove, 178 + .remove = __devexit_p(altera_ps2_remove), 179 179 .driver = { 180 180 .name = DRV_NAME, 181 181 .owner = THIS_MODULE,