让bootlogo显示出来只需要将延时函数这部分注释掉就可以了,操作方法如下 diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 66304c0d..b7324897 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -423,7 +423,7 @@ static struct platform_driver pwm_backlight_driver = { .remove = pwm_backlight_remove, .shutdown = pwm_backlight_shutdown, }; - +/* static int __init pwm_backlight_init(void) { return platform_driver_register(&pwm_backlight_driver); @@ -436,8 +436,8 @@ static void __exit pwm_backlight_exit(void) platform_driver_unregister(&pwm_backlight_driver); } module_exit(pwm_backlight_exit); - -//module_platform_driver(pwm_backlight_driver); +*/ +module_platform_driver(pwm_backlight_driver); MODULE_DESCRIPTION("PWM based Backlight Driver"); MODULE_LICENSE("GPL"); |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:36
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.