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

Commit 86bf0438 authored by Hanjun Guo's avatar Hanjun Guo Committed by Tomi Valkeinen
Browse files

Video / hecubafb: Use module_platform_driver() to simplify code



Convert to module_platform_driver() to simplify code.

Signed-off-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 78145a95
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -305,19 +305,7 @@ static struct platform_driver hecubafb_driver = {
		.name	= "hecubafb",
	},
};

static int __init hecubafb_init(void)
{
	return platform_driver_register(&hecubafb_driver);
}

static void __exit hecubafb_exit(void)
{
	platform_driver_unregister(&hecubafb_driver);
}

module_init(hecubafb_init);
module_exit(hecubafb_exit);
module_platform_driver(hecubafb_driver);

MODULE_DESCRIPTION("fbdev driver for Hecuba/Apollo controller");
MODULE_AUTHOR("Jaya Kumar");