提交 d30a009b 编写于 作者: L LiteOS2021

move trace device init from system_init.c to drivers/char/trace.c

Signed-off-by: NLiteOS2021 <dinglu@huawei.com>
Change-Id: Ie4555c57f56c82f74b5e29f0e58aec97dc6cc32d
上级 dc9ec685
......@@ -36,6 +36,7 @@
#include "los_dev_trace.h"
#include "los_trace.h"
#include "los_hook.h"
#include "los_init.h"
#define TRACE_DRIVER "/dev/trace"
#define TRACE_DRIVER_MODE 0666
......@@ -155,3 +156,5 @@ int DevTraceRegister(void)
{
return register_driver(TRACE_DRIVER, &g_traceDevOps, TRACE_DRIVER_MODE, 0); /* 0666: file mode */
}
LOS_MODULE_INIT(DevTraceRegister, LOS_INIT_LEVEL_KMOD_EXTENDED);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册