staging/android: use module_platform_driver
A message that is not in the archive (sent off-list or not yet received): [email protected]
oops forgot to add LKML,
Quoted 38 lines · Devendra Naga
as the init and exit functions just do a
platform_driver_registerandplatform_driver_unregister, and nothing else, so its better to use themodule_platform_drivermacro rather replicating its implementationSigned-off-by Devendra Naga <[email protected]>--- drivers/staging/android/timed_gpio.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)drivers/staging/android/timed_gpio.c +1
-13@@ -161,18 +161,7 @@ static struct platform_driver timed_gpio_driver = { }, }; -static int __init timed_gpio_init (void ) -{ -return platform_driver_register (&timed_gpio_driver); -} - -static void __exit timed_gpio_exit(void) -{ -platform_driver_unregister (&timed_gpio_driver); -} - -module_init (timed_gpio_init); -module_exit (timed_gpio_exit); +module_platform_driver (timed_gpio_driver);MODULE_AUTHOR ("Mike Lockwood <[email protected]>" );MODULE_DESCRIPTION ("timed gpio driver" ); --1.7.9.5