Skip to content

Commit

Permalink
video: convert mbxfb to use module_platform_driver()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Florian Tobias Schandinat committed Dec 19, 2011
1 parent edd153a commit 70f6255
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/video/mbx/mbxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,18 +1053,7 @@ static struct platform_driver mbxfb_driver = {
},
};

int __devinit mbxfb_init(void)
{
return platform_driver_register(&mbxfb_driver);
}

static void __devexit mbxfb_exit(void)
{
platform_driver_unregister(&mbxfb_driver);
}

module_init(mbxfb_init);
module_exit(mbxfb_exit);
module_platform_driver(mbxfb_driver);

MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device");
MODULE_AUTHOR("Mike Rapoport, Compulab");
Expand Down

0 comments on commit 70f6255

Please sign in to comment.