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>
This commit is contained in:
committed by
Linus Torvalds
parent
cb1fbb8882
commit
6ea0b2fb1b
@@ -225,17 +225,7 @@ static struct platform_driver atmel_pwm_bl_driver = {
|
|||||||
.remove = __exit_p(atmel_pwm_bl_remove),
|
.remove = __exit_p(atmel_pwm_bl_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init atmel_pwm_bl_init(void)
|
module_platform_driver_probe(atmel_pwm_bl_driver, atmel_pwm_bl_probe);
|
||||||
{
|
|
||||||
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_AUTHOR("Hans-Christian egtvedt <hans-christian.egtvedt@atmel.com>");
|
MODULE_AUTHOR("Hans-Christian egtvedt <hans-christian.egtvedt@atmel.com>");
|
||||||
MODULE_DESCRIPTION("Atmel PWM backlight driver");
|
MODULE_DESCRIPTION("Atmel PWM backlight driver");
|
||||||
|
Reference in New Issue
Block a user