diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 01:32:05 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 03:51:09 -0400 |
commit | 44f544f752eb90781ef74010c2566c0dde2914ad (patch) | |
tree | de465e4780bf897a36feb03424c7fce43e54ffb9 /drivers/video/da8xx-fb.c | |
parent | 5fc89379dae86ae7318acd00b918b7ba36fc322a (diff) |
Video / da8xx-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/da8xx-fb.c')
-rw-r--r-- | drivers/video/da8xx-fb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 0670c85bef44..90f8a2f04d7a 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c | |||
@@ -1663,19 +1663,7 @@ static struct platform_driver da8xx_fb_driver = { | |||
1663 | .owner = THIS_MODULE, | 1663 | .owner = THIS_MODULE, |
1664 | }, | 1664 | }, |
1665 | }; | 1665 | }; |
1666 | 1666 | module_platform_driver(da8xx_fb_driver); | |
1667 | static int __init da8xx_fb_init(void) | ||
1668 | { | ||
1669 | return platform_driver_register(&da8xx_fb_driver); | ||
1670 | } | ||
1671 | |||
1672 | static void __exit da8xx_fb_cleanup(void) | ||
1673 | { | ||
1674 | platform_driver_unregister(&da8xx_fb_driver); | ||
1675 | } | ||
1676 | |||
1677 | module_init(da8xx_fb_init); | ||
1678 | module_exit(da8xx_fb_cleanup); | ||
1679 | 1667 | ||
1680 | MODULE_DESCRIPTION("Framebuffer driver for TI da8xx/omap-l1xx"); | 1668 | MODULE_DESCRIPTION("Framebuffer driver for TI da8xx/omap-l1xx"); |
1681 | MODULE_AUTHOR("Texas Instruments"); | 1669 | MODULE_AUTHOR("Texas Instruments"); |