mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 00:06:41 +09:00
staging: xillybus: Use module_platform_driver
module_platform_driver simplifies the code by removing the boilerplate. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
47052577bc
commit
7a620a650b
@@ -198,15 +198,4 @@ static struct platform_driver xillybus_platform_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init xillybus_of_init(void)
|
||||
{
|
||||
return platform_driver_register(&xillybus_platform_driver);
|
||||
}
|
||||
|
||||
static void __exit xillybus_of_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&xillybus_platform_driver);
|
||||
}
|
||||
|
||||
module_init(xillybus_of_init);
|
||||
module_exit(xillybus_of_exit);
|
||||
module_platform_driver(xillybus_platform_driver);
|
||||
|
||||
Reference in New Issue
Block a user