From: Hanjun Guo Date: Sun, 29 Sep 2013 05:32:01 +0000 (+0800) Subject: Video / hecubafb: Use module_platform_driver() to simplify code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86bf043897a61bc62a5b1f8fee9fc7681f330f90;p=linux-beck.git Video / hecubafb: Use module_platform_driver() to simplify code Convert to module_platform_driver() to simplify code. Signed-off-by: Hanjun Guo Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 59d23181fdb0..702b599dc3d6 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -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");