diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-09-29 13:32:07 +0800 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-30 10:51:09 +0300 |
commit | 46fc95030de0b4af6e5b52048b3a45ee0622d501 (patch) | |
tree | a1b0292510d4d4a7aac9b9a81bad6cae66f82a8f /drivers/video/broadsheetfb.c | |
parent | be75b5b53528fe8a9d31bba3c1cdc5eec2769114 (diff) |
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/broadsheetfb.c')
-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 b09701c7943..393d5a03b34 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"); |