summaryrefslogtreecommitdiffstats
path: root/drivers/video/jz4740_fb.c
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-09-29 13:32:04 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-30 10:51:09 +0300
commit5fc89379dae86ae7318acd00b918b7ba36fc322a (patch)
tree87c2a1280f333b29e8fada50efb226959b5f0888 /drivers/video/jz4740_fb.c
parentae6b639dd898e3446456e5c150517ae79bb6399a (diff)
downloadop-kernel-dev-5fc89379dae86ae7318acd00b918b7ba36fc322a.zip
op-kernel-dev-5fc89379dae86ae7318acd00b918b7ba36fc322a.tar.gz
Video / jz4740_fb: Use module_platform_driver() to simplify code
Convert to module_platform_driver() to simplify code. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/jz4740_fb.c')
-rw-r--r--drivers/video/jz4740_fb.c13
1 files changed, 1 insertions, 12 deletions
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 <lars@metafoo.de>");
OpenPOWER on IntegriCloud