common: board_r: add console_record_reset_enable() call

It's fine to call it by initr_console_record() since initr
malloc was setup.

Change-Id: I2de9f0bf76499e5c04d4ce57aa48800d6a6151db
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-04-30 14:31:27 +08:00 committed by Jianhong Chen
parent 4f92923ecc
commit 8626b64732
1 changed files with 6 additions and 1 deletions

View File

@ -256,7 +256,12 @@ static int initr_malloc(void)
static int initr_console_record(void)
{
#if defined(CONFIG_CONSOLE_RECORD)
return console_record_init();
int ret;
ret = console_record_init();
if (!ret)
console_record_reset_enable();
return ret;
#else
return 0;
#endif