aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.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/sh_mobile_lcdcfb.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/sh_mobile_lcdcfb.c')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index 1f49ab48d0b5..a264ebf971a0 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -1709,18 +1709,7 @@ static struct platform_driver sh_mobile_lcdc_driver = {
1709 .remove = sh_mobile_lcdc_remove, 1709 .remove = sh_mobile_lcdc_remove,
1710}; 1710};
1711 1711
1712static int __init sh_mobile_lcdc_init(void) 1712module_platform_driver(sh_mobile_lcdc_driver);
1713{
1714 return platform_driver_register(&sh_mobile_lcdc_driver);
1715}
1716
1717static void __exit sh_mobile_lcdc_exit(void)
1718{
1719 platform_driver_unregister(&sh_mobile_lcdc_driver);
1720}
1721
1722module_init(sh_mobile_lcdc_init);
1723module_exit(sh_mobile_lcdc_exit);
1724 1713
1725MODULE_DESCRIPTION("SuperH Mobile LCDC Framebuffer driver"); 1714MODULE_DESCRIPTION("SuperH Mobile LCDC Framebuffer driver");
1726MODULE_AUTHOR("Magnus Damm <damm@opensource.se>"); 1715MODULE_AUTHOR("Magnus Damm <damm@opensource.se>");