syslog: Move syslog_rpmsg_server_init to syslog_initialize

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-08-09 22:04:04 +08:00 committed by Petro Karashchenko
parent b8b541fbf5
commit 64f0267993
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -91,6 +91,10 @@ int syslog_initialize(void)
syslog_rpmsg_init();
#endif
#ifdef CONFIG_SYSLOG_RPMSG_SERVER
syslog_rpmsg_server_init();
#endif
return ret;
}