From be75b5b53528fe8a9d31bba3c1cdc5eec2769114 Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Sun, 29 Sep 2013 13:32:06 +0800 Subject: [PATCH] Video / cobalt_lcdfb: 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 --- drivers/video/cobalt_lcdfb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index a9031498e10c..a7b0ab62b97b 100644 --- a/drivers/video/cobalt_lcdfb.c +++ b/drivers/video/cobalt_lcdfb.c @@ -395,19 +395,7 @@ static struct platform_driver cobalt_lcdfb_driver = { .owner = THIS_MODULE, }, }; - -static int __init cobalt_lcdfb_init(void) -{ - return platform_driver_register(&cobalt_lcdfb_driver); -} - -static void __exit cobalt_lcdfb_exit(void) -{ - platform_driver_unregister(&cobalt_lcdfb_driver); -} - -module_init(cobalt_lcdfb_init); -module_exit(cobalt_lcdfb_exit); +module_platform_driver(cobalt_lcdfb_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Yoichi Yuasa"); -- 2.20.1