gpio_mouse: use standard driver registration method
Subsystems (2)
PATCH 1/1 gpio_mouse: use standard driver registration method
This patch is needed when the gpio's became available only at late stages, for example, when using i2c gpio expander.
Signed-off-by Saeed Bishara <[email protected]>
--- drivers/input/mouse/gpio_mouse.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/mouse/gpio_mouse.c +2 -2
@@ -175,6 +175,7 @@ MODULE_ALIAS("platform:gpio_mouse");static struct platform_driver gpio_mouse_device_driver = { .remove =__devexit_p (gpio_mouse_remove), + .probe = gpio_mouse_probe, .driver = { .name ="gpio_mouse" , .owner =THIS_MODULE ,
@@ -183,8 +184,7 @@ static struct platform_driver gpio_mouse_device_driver = {static int __init gpio_mouse_init (void ) { -return platform_driver_probe (&gpio_mouse_device_driver, - gpio_mouse_probe); +return platform_driver_register (&gpio_mouse_device_driver); }module_init (gpio_mouse_init);
Signature · 1 line
1.6.0.4
Hi Saeed,
Quoted 3 lines · Saeed Bishara
This patch is needed when the gpio's became available only at late stages, for example, when using i2c gpio expander.
When changing from platform_driver_probe() to platform_driver_register() you also need to convert markings on the driver's probe() method from __init to __devinit.
Applied.
Signature · 1 line
Dmitry