diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 01:32:04 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 03:51:09 -0400 |
commit | 5fc89379dae86ae7318acd00b918b7ba36fc322a (patch) | |
tree | 87c2a1280f333b29e8fada50efb226959b5f0888 /drivers/video/jz4740_fb.c | |
parent | ae6b639dd898e3446456e5c150517ae79bb6399a (diff) |
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.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 3f99dcb28b09..87790e9644d0 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c | |||
@@ -798,18 +798,7 @@ static struct platform_driver jzfb_driver = { | |||
798 | .pm = JZFB_PM_OPS, | 798 | .pm = JZFB_PM_OPS, |
799 | }, | 799 | }, |
800 | }; | 800 | }; |
801 | 801 | module_platform_driver(jzfb_driver); | |
802 | static int __init jzfb_init(void) | ||
803 | { | ||
804 | return platform_driver_register(&jzfb_driver); | ||
805 | } | ||
806 | module_init(jzfb_init); | ||
807 | |||
808 | static void __exit jzfb_exit(void) | ||
809 | { | ||
810 | platform_driver_unregister(&jzfb_driver); | ||
811 | } | ||
812 | module_exit(jzfb_exit); | ||
813 | 802 | ||
814 | MODULE_LICENSE("GPL"); | 803 | MODULE_LICENSE("GPL"); |
815 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 804 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |