gpu: ion: use module_platform_driver to simplify the code

module_platform_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yongjun 2013-12-17 11:16:41 +08:00 committed by Greg Kroah-Hartman
parent 0462e185ca
commit d4ed510a4c

View File

@ -81,16 +81,5 @@ static struct platform_driver ion_driver = {
.driver = { .name = "ion-tegra" } .driver = { .name = "ion-tegra" }
}; };
static int __init ion_init(void) module_platform_driver(ion_driver);
{
return platform_driver_register(&ion_driver);
}
static void __exit ion_exit(void)
{
platform_driver_unregister(&ion_driver);
}
module_init(ion_init);
module_exit(ion_exit);