From: Jingoo Han Date: Mon, 29 Apr 2013 23:17:28 +0000 (-0700) Subject: drivers/video/backlight/atmel-pwm-bl.c: use module_platform_driver_probe() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ea0b2fb1b9033ec978154ee979c82ad8b966323;p=linux-beck.git 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 Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 = { .remove = __exit_p(atmel_pwm_bl_remove), }; -static int __init atmel_pwm_bl_init(void) -{ - return platform_driver_probe(&atmel_pwm_bl_driver, atmel_pwm_bl_probe); -} -module_init(atmel_pwm_bl_init); - -static void __exit atmel_pwm_bl_exit(void) -{ - platform_driver_unregister(&atmel_pwm_bl_driver); -} -module_exit(atmel_pwm_bl_exit); +module_platform_driver_probe(atmel_pwm_bl_driver, atmel_pwm_bl_probe); MODULE_AUTHOR("Hans-Christian egtvedt "); MODULE_DESCRIPTION("Atmel PWM backlight driver");