From 5fc89379dae86ae7318acd00b918b7ba36fc322a Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Sun, 29 Sep 2013 13:32:04 +0800 Subject: Video / jz4740_fb: 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/jz4740_fb.c b/drivers/video/jz4740_fb.c index 3f99dcb..87790e9 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -798,18 +798,7 @@ static struct platform_driver jzfb_driver = { .pm = JZFB_PM_OPS, }, }; - -static int __init jzfb_init(void) -{ - return platform_driver_register(&jzfb_driver); -} -module_init(jzfb_init); - -static void __exit jzfb_exit(void) -{ - platform_driver_unregister(&jzfb_driver); -} -module_exit(jzfb_exit); +module_platform_driver(jzfb_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Lars-Peter Clausen "); -- cgit v0.10.2