aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/mbx
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-12-08 20:57:53 -0500
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-12-19 15:21:43 -0500
commit70f6255a488f62a8f054907479b0eb6615b9bcb5 (patch)
tree708e0f70ede8e81f24f7db20312ea25b449ee59c /drivers/video/mbx
parentedd153a3e4f7346551f98014b3ccf0494219a9d1 (diff)
video: convert mbxfb to use module_platform_driver()
This patch converts mbxfb to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/mbx')
-rw-r--r--drivers/video/mbx/mbxfb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index 6ce34160da78..55bf6196b7a0 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -1053,18 +1053,7 @@ static struct platform_driver mbxfb_driver = {
1053 }, 1053 },
1054}; 1054};
1055 1055
1056int __devinit mbxfb_init(void) 1056module_platform_driver(mbxfb_driver);
1057{
1058 return platform_driver_register(&mbxfb_driver);
1059}
1060
1061static void __devexit mbxfb_exit(void)
1062{
1063 platform_driver_unregister(&mbxfb_driver);
1064}
1065
1066module_init(mbxfb_init);
1067module_exit(mbxfb_exit);
1068 1057
1069MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device"); 1058MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device");
1070MODULE_AUTHOR("Mike Rapoport, Compulab"); 1059MODULE_AUTHOR("Mike Rapoport, Compulab");