aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/w100fb.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/w100fb.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/w100fb.c')
-rw-r--r--drivers/video/w100fb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/video/w100fb.c b/drivers/video/w100fb.c
index 2375e5bbf572..90a2e30272ad 100644
--- a/drivers/video/w100fb.c
+++ b/drivers/video/w100fb.c
@@ -1620,18 +1620,7 @@ static struct platform_driver w100fb_driver = {
1620 }, 1620 },
1621}; 1621};
1622 1622
1623int __init w100fb_init(void) 1623module_platform_driver(w100fb_driver);
1624{
1625 return platform_driver_register(&w100fb_driver);
1626}
1627
1628void __exit w100fb_cleanup(void)
1629{
1630 platform_driver_unregister(&w100fb_driver);
1631}
1632
1633module_init(w100fb_init);
1634module_exit(w100fb_cleanup);
1635 1624
1636MODULE_DESCRIPTION("ATI Imageon w100 framebuffer driver"); 1625MODULE_DESCRIPTION("ATI Imageon w100 framebuffer driver");
1637MODULE_LICENSE("GPL"); 1626MODULE_LICENSE("GPL");