diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 07:32:07 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 09:51:09 +0200 |
commit | 46fc95030de0b4af6e5b52048b3a45ee0622d501 (patch) | |
tree | a1b0292510d4d4a7aac9b9a81bad6cae66f82a8f /drivers/video | |
parent | Video / cobalt_lcdfb: Use module_platform_driver() to simplify code (diff) | |
download | linux-46fc95030de0b4af6e5b52048b3a45ee0622d501.tar.xz linux-46fc95030de0b4af6e5b52048b3a45ee0622d501.zip |
Video / broadsheetfb: 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/broadsheetfb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c index b09701c79432..393d5a03b34e 100644 --- a/drivers/video/broadsheetfb.c +++ b/drivers/video/broadsheetfb.c @@ -1217,19 +1217,7 @@ static struct platform_driver broadsheetfb_driver = { .name = "broadsheetfb", }, }; - -static int __init broadsheetfb_init(void) -{ - return platform_driver_register(&broadsheetfb_driver); -} - -static void __exit broadsheetfb_exit(void) -{ - platform_driver_unregister(&broadsheetfb_driver); -} - -module_init(broadsheetfb_init); -module_exit(broadsheetfb_exit); +module_platform_driver(broadsheetfb_driver); MODULE_DESCRIPTION("fbdev driver for Broadsheet controller"); MODULE_AUTHOR("Jaya Kumar"); |