aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/max8925_bl.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-10 18:09:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 19:30:48 -0500
commit81178e021689bf86c328f144aa0f0e1b50f5e94c (patch)
treefccb1bdc72884c42ca491067060bc760a1d6e24c /drivers/video/backlight/max8925_bl.c
parent3ed0c15fd1032c6a75aba804a200d4acc5aeb72e (diff)
backlight: convert drivers/video/backlight/* to use module_platform_driver()
Convert the drivers in drivers/video/backlight/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> [ep93xx_bl.c] Cc: Mike Rapoport <mike@compulab.co.il> Cc: Richard Purdie <rpurdie@rpsys.net> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/max8925_bl.c')
-rw-r--r--drivers/video/backlight/max8925_bl.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c
index 7bbc802560ea..c915e3b53886 100644
--- a/drivers/video/backlight/max8925_bl.c
+++ b/drivers/video/backlight/max8925_bl.c
@@ -188,17 +188,7 @@ static struct platform_driver max8925_backlight_driver = {
188 .remove = __devexit_p(max8925_backlight_remove), 188 .remove = __devexit_p(max8925_backlight_remove),
189}; 189};
190 190
191static int __init max8925_backlight_init(void) 191module_platform_driver(max8925_backlight_driver);
192{
193 return platform_driver_register(&max8925_backlight_driver);
194}
195module_init(max8925_backlight_init);
196
197static void __exit max8925_backlight_exit(void)
198{
199 platform_driver_unregister(&max8925_backlight_driver);
200};
201module_exit(max8925_backlight_exit);
202 192
203MODULE_DESCRIPTION("Backlight Driver for Maxim MAX8925"); 193MODULE_DESCRIPTION("Backlight Driver for Maxim MAX8925");
204MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 194MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>");