syslog: Move syslog_rpmsg_server_init to syslog_initialize
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b8b541fbf5
commit
64f0267993
|
@ -43,7 +43,6 @@
|
|||
#include <nuttx/sensors/mpu60x0.h>
|
||||
#include <nuttx/sensors/wtgahrs2.h>
|
||||
#include <nuttx/serial/uart_rpmsg.h>
|
||||
#include <nuttx/syslog/syslog_rpmsg.h>
|
||||
#include <nuttx/timers/oneshot.h>
|
||||
#include <nuttx/video/fb.h>
|
||||
#include <nuttx/timers/oneshot.h>
|
||||
|
@ -449,10 +448,6 @@ int sim_bringup(void)
|
|||
up_rptun_init("server-proxy", "server", false);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSLOG_RPMSG_SERVER
|
||||
syslog_rpmsg_server_init();
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_FS_RPMSGFS) && defined(CONFIG_SIM_RPTUN_MASTER)
|
||||
rpmsgfs_server_init();
|
||||
#endif
|
||||
|
|
|
@ -91,6 +91,10 @@ int syslog_initialize(void)
|
|||
syslog_rpmsg_init();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSLOG_RPMSG_SERVER
|
||||
syslog_rpmsg_server_init();
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue