Commit c21be47c authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging/android: use module_platform_driver

as the init and exit functions just do a platform_driver_register and
platform_driver_unregister, and nothing else, so its better to
use the module_platform_driver macro rather replicating its implementation
Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3d4e9e57
...@@ -161,18 +161,7 @@ static struct platform_driver timed_gpio_driver = { ...@@ -161,18 +161,7 @@ static struct platform_driver timed_gpio_driver = {
}, },
}; };
static int __init timed_gpio_init(void) module_platform_driver(timed_gpio_driver);
{
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_AUTHOR("Mike Lockwood <lockwood@android.com>"); MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>");
MODULE_DESCRIPTION("timed gpio driver"); MODULE_DESCRIPTION("timed gpio driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment