linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] video: convert mbxfb to use module_platform_driver()
@ 2011-12-09  1:57 Axel Lin
  2011-12-09  1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Axel Lin @ 2011-12-09  1:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mike Rapoport, Florian Tobias Schandinat, linux-fbdev

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>
---
 drivers/video/mbx/mbxfb.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index 6ce3416..55bf619 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -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");
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-19 23:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09  1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
2011-12-09  1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
2011-12-09  8:24   ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Marek Vasut
2011-12-09 22:00     ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Jonathan McDowell
2011-12-12 10:46   ` Tomi Valkeinen
2011-12-09  2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* " Axel Lin
2011-12-19 23:15   ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to Florian Tobias Schandinat
2011-12-19 23:14 ` [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Florian Tobias Schandinat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).