diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 21:25:54 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-12-03 17:08:42 -0500 |
commit | 4277f2c4667187cbbdd3da3be31ee681bc6b8300 (patch) | |
tree | 8daecab60ec67cfdecf71ec7668c8e96b28b17b8 /drivers/video/pxa3xx-gcu.c | |
parent | 9056df19c2a63cec88cf580ab131214ef90d5cb1 (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/pxa3xx-gcu.c')
-rw-r--r-- | drivers/video/pxa3xx-gcu.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/video/pxa3xx-gcu.c b/drivers/video/pxa3xx-gcu.c index 1ed8b366618d..1d71c08a818f 100644 --- a/drivers/video/pxa3xx-gcu.c +++ b/drivers/video/pxa3xx-gcu.c | |||
@@ -747,20 +747,7 @@ static struct platform_driver pxa3xx_gcu_driver = { | |||
747 | }, | 747 | }, |
748 | }; | 748 | }; |
749 | 749 | ||
750 | static int __init | 750 | module_platform_driver(pxa3xx_gcu_driver); |
751 | pxa3xx_gcu_init(void) | ||
752 | { | ||
753 | return platform_driver_register(&pxa3xx_gcu_driver); | ||
754 | } | ||
755 | |||
756 | static void __exit | ||
757 | pxa3xx_gcu_exit(void) | ||
758 | { | ||
759 | platform_driver_unregister(&pxa3xx_gcu_driver); | ||
760 | } | ||
761 | |||
762 | module_init(pxa3xx_gcu_init); | ||
763 | module_exit(pxa3xx_gcu_exit); | ||
764 | 751 | ||
765 | MODULE_DESCRIPTION("PXA3xx graphics controller unit driver"); | 752 | MODULE_DESCRIPTION("PXA3xx graphics controller unit driver"); |
766 | MODULE_LICENSE("GPL"); | 753 | MODULE_LICENSE("GPL"); |