diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 05:32:06 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 07:51:09 (GMT) |
commit | be75b5b53528fe8a9d31bba3c1cdc5eec2769114 (patch) | |
tree | 8cdce7e737aac099e2ebfac049b093623d067db3 | |
parent | 44f544f752eb90781ef74010c2566c0dde2914ad (diff) | |
download | linux-be75b5b53528fe8a9d31bba3c1cdc5eec2769114.tar.xz |
Video / cobalt_lcdfb: 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>
-rw-r--r-- | drivers/video/cobalt_lcdfb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index a903149..a7b0ab6 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"); |