diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 13:32:06 +0800 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 10:51:09 +0300 |
commit | be75b5b53528fe8a9d31bba3c1cdc5eec2769114 (patch) | |
tree | 8cdce7e737aac099e2ebfac049b093623d067db3 /drivers/video/cobalt_lcdfb.c | |
parent | 44f544f752eb90781ef74010c2566c0dde2914ad (diff) | |
download | linux-be75b5b53528fe8a9d31bba3c1cdc5eec2769114.tar.gz linux-be75b5b53528fe8a9d31bba3c1cdc5eec2769114.tar.bz2 linux-be75b5b53528fe8a9d31bba3c1cdc5eec2769114.zip |
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>
Diffstat (limited to 'drivers/video/cobalt_lcdfb.c')
-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 a9031498e10c..a7b0ab62b97b 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"); |