aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/xilinxfb.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-25 21:25:54 -0500
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-12-03 17:08:42 -0500
commit4277f2c4667187cbbdd3da3be31ee681bc6b8300 (patch)
tree8daecab60ec67cfdecf71ec7668c8e96b28b17b8 /drivers/video/xilinxfb.c
parent9056df19c2a63cec88cf580ab131214ef90d5cb1 (diff)
video: convert drivers/video/* to use module_platform_driver()
This patch converts the drivers in drivers/video/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Ben Dooks <ben@simtec.co.uk> Cc: Manuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Wan ZongShun <mcuos.com@gmail.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Acked-by: Alexey Charkov <alchark@gmail.com> Acked-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/xilinxfb.c')
-rw-r--r--drivers/video/xilinxfb.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c
index fcb6cd90f64d..18084525402a 100644
--- a/drivers/video/xilinxfb.c
+++ b/drivers/video/xilinxfb.c
@@ -511,25 +511,7 @@ static struct platform_driver xilinxfb_of_driver = {
511 }, 511 },
512}; 512};
513 513
514 514module_platform_driver(xilinxfb_of_driver);
515/* ---------------------------------------------------------------------
516 * Module setup and teardown
517 */
518
519static int __init
520xilinxfb_init(void)
521{
522 return platform_driver_register(&xilinxfb_of_driver);
523}
524
525static void __exit
526xilinxfb_cleanup(void)
527{
528 platform_driver_unregister(&xilinxfb_of_driver);
529}
530
531module_init(xilinxfb_init);
532module_exit(xilinxfb_cleanup);
533 515
534MODULE_AUTHOR("MontaVista Software, Inc. <source@mvista.com>"); 516MODULE_AUTHOR("MontaVista Software, Inc. <source@mvista.com>");
535MODULE_DESCRIPTION("Xilinx TFT frame buffer driver"); 517MODULE_DESCRIPTION("Xilinx TFT frame buffer driver");