summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-09-29 13:32:07 +0800
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-30 10:51:09 +0300
commit46fc95030de0b4af6e5b52048b3a45ee0622d501 (patch)
treea1b0292510d4d4a7aac9b9a81bad6cae66f82a8f /drivers
parentbe75b5b53528fe8a9d31bba3c1cdc5eec2769114 (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')
-rw-r--r--drivers/video/broadsheetfb.c14
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");