diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-10 18:09:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 19:30:48 -0500 |
commit | 81178e021689bf86c328f144aa0f0e1b50f5e94c (patch) | |
tree | fccb1bdc72884c42ca491067060bc760a1d6e24c /drivers/video/backlight/adp5520_bl.c | |
parent | 3ed0c15fd1032c6a75aba804a200d4acc5aeb72e (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/adp5520_bl.c')
-rw-r--r-- | drivers/video/backlight/adp5520_bl.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/backlight/adp5520_bl.c b/drivers/video/backlight/adp5520_bl.c index dfb763e9147f..2e630bf1164c 100644 --- a/drivers/video/backlight/adp5520_bl.c +++ b/drivers/video/backlight/adp5520_bl.c | |||
@@ -384,17 +384,7 @@ static struct platform_driver adp5520_bl_driver = { | |||
384 | .resume = adp5520_bl_resume, | 384 | .resume = adp5520_bl_resume, |
385 | }; | 385 | }; |
386 | 386 | ||
387 | static int __init adp5520_bl_init(void) | 387 | module_platform_driver(adp5520_bl_driver); |
388 | { | ||
389 | return platform_driver_register(&adp5520_bl_driver); | ||
390 | } | ||
391 | module_init(adp5520_bl_init); | ||
392 | |||
393 | static void __exit adp5520_bl_exit(void) | ||
394 | { | ||
395 | platform_driver_unregister(&adp5520_bl_driver); | ||
396 | } | ||
397 | module_exit(adp5520_bl_exit); | ||
398 | 388 | ||
399 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 389 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
400 | MODULE_DESCRIPTION("ADP5520(01) Backlight Driver"); | 390 | MODULE_DESCRIPTION("ADP5520(01) Backlight Driver"); |