syslog: Call syslog_rpmsg_init inside syslog_initialize like other syslog driver

This commit is contained in:
Xiang Xiao 2020-02-19 11:30:07 +08:00 committed by Gregory Nutt
parent 553f12b4e8
commit 892290f76b
2 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,6 @@
#include <nuttx/fs/hostfs_rpmsg.h>
#include <nuttx/rptun/rptun.h>
#include <nuttx/serial/uart_rpmsg.h>
#include <nuttx/syslog/syslog_rpmsg.h>
#include "up_internal.h"
@ -245,10 +244,6 @@ int up_rptun_init(void)
return ret;
}
#ifdef CONFIG_SYSLOG_RPMSG
syslog_rpmsg_init();
#endif
#ifdef CONFIG_SYSLOG_RPMSG_SERVER
syslog_rpmsg_server_init();
#endif

View File

@ -43,6 +43,7 @@
#include <nuttx/syslog/ramlog.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/syslog/syslog_rpmsg.h>
#include "syslog.h"
@ -101,6 +102,10 @@ int syslog_initialize(void)
syslog_register();
#endif
#ifdef CONFIG_SYSLOG_CHARDEV
syslog_rpmsg_init();
#endif
return ret;
}