Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4ed510a authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

gpu: ion: use module_platform_driver to simplify the code



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

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0462e185
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -81,16 +81,5 @@ static struct platform_driver ion_driver = {
	.driver = { .name = "ion-tegra" }
};

static int __init ion_init(void)
{
	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);
module_platform_driver(ion_driver);