diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 07:32:06 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 09:51:09 +0200 |
commit | be75b5b53528fe8a9d31bba3c1cdc5eec2769114 (patch) | |
tree | 8cdce7e737aac099e2ebfac049b093623d067db3 /drivers/video | |
parent | Video / da8xx-fb: Use module_platform_driver() to simplify code (diff) | |
download | linux-be75b5b53528fe8a9d31bba3c1cdc5eec2769114.tar.xz 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')
-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"); |