diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:17:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:14 -0400 |
commit | 6ea0b2fb1b9033ec978154ee979c82ad8b966323 (patch) | |
tree | 1cb3365532e972e10afd7e919bca95cec463b5e3 /drivers/video/backlight | |
parent | cb1fbb8882cb657b4dee73bc7223e6213dc2197f (diff) |
drivers/video/backlight/atmel-pwm-bl.c: use module_platform_driver_probe()
Use the module_platform_driver_probe() macro which makes the code
smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/atmel-pwm-bl.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/backlight/atmel-pwm-bl.c b/drivers/video/backlight/atmel-pwm-bl.c index de5e5e74e2a7..20b330dfbaab 100644 --- a/drivers/video/backlight/atmel-pwm-bl.c +++ b/drivers/video/backlight/atmel-pwm-bl.c | |||
@@ -225,17 +225,7 @@ static struct platform_driver atmel_pwm_bl_driver = { | |||
225 | .remove = __exit_p(atmel_pwm_bl_remove), | 225 | .remove = __exit_p(atmel_pwm_bl_remove), |
226 | }; | 226 | }; |
227 | 227 | ||
228 | static int __init atmel_pwm_bl_init(void) | 228 | module_platform_driver_probe(atmel_pwm_bl_driver, atmel_pwm_bl_probe); |
229 | { | ||
230 | return platform_driver_probe(&atmel_pwm_bl_driver, atmel_pwm_bl_probe); | ||
231 | } | ||
232 | module_init(atmel_pwm_bl_init); | ||
233 | |||
234 | static void __exit atmel_pwm_bl_exit(void) | ||
235 | { | ||
236 | platform_driver_unregister(&atmel_pwm_bl_driver); | ||
237 | } | ||
238 | module_exit(atmel_pwm_bl_exit); | ||
239 | 229 | ||
240 | MODULE_AUTHOR("Hans-Christian egtvedt <hans-christian.egtvedt@atmel.com>"); | 230 | MODULE_AUTHOR("Hans-Christian egtvedt <hans-christian.egtvedt@atmel.com>"); |
241 | MODULE_DESCRIPTION("Atmel PWM backlight driver"); | 231 | MODULE_DESCRIPTION("Atmel PWM backlight driver"); |