mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
pm: Move pm_initialize call from driver_initialize to xxx_pminitialize
since it's too late with the below commit:
ommit a594a5d7a8
Author: chao.an <anchao@xiaomi.com>
Date: Mon Apr 11 19:44:26 2022 +0800
sched/init: drivers_initialize() should be late than up_initialize()
up_initialize
|
->up_serialinit
|
->uart_register /* ("/dev/console", &CONSOLE_DEV); */
drivers_initialize
|
->syslog_console_init
|
->register_driver /* ("/dev/console", &g_consoleops, 0666, NULL); */
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
cf90e3f66b
commit
5a565e753c
@@ -54,12 +54,6 @@
|
||||
|
||||
void drivers_initialize(void)
|
||||
{
|
||||
#ifdef CONFIG_PM
|
||||
/* Initialize power management subsystem proper */
|
||||
|
||||
pm_initialize();
|
||||
#endif
|
||||
|
||||
/* Register devices */
|
||||
|
||||
syslog_initialize();
|
||||
|
||||
Reference in New Issue
Block a user