Merge "soc: logbuf: Miscellaneous fixes"

This commit is contained in:
qctecmdr 2024-02-09 11:48:48 -08:00 committed by Gerrit - the friendly Code Review server
commit dd70fdd247
2 changed files with 4 additions and 3 deletions

View file

@ -83,6 +83,8 @@ static int __init boot_log_dump_init(void)
size_t text_len;
ret = boot_log_init();
if (ret < 0)
return ret;
kmsg_dump_rewind(&iter);
dumped_line = iter.next_seq;
@ -92,7 +94,7 @@ static int __init boot_log_dump_init(void)
iter.cur_seq = dumped_line;
dump_thread = kthread_run(dump_thread_func, NULL, "dump_thread");
return ret;
return 0;
}
late_initcall(boot_log_dump_init);

View file

@ -66,7 +66,6 @@ void register_log_minidump(struct printk_ringbuffer *prb)
static int logbuf_vh_driver_probe(struct platform_device *pdev)
{
int ret = 0;
struct printk_ringbuffer *prb = NULL;
if (!debug_symbol_available())
@ -75,7 +74,7 @@ static int logbuf_vh_driver_probe(struct platform_device *pdev)
prb = *(struct printk_ringbuffer **)DEBUG_SYMBOL_LOOKUP(prb);
register_log_minidump(prb);
return ret;
return 0;
}
static int logbuf_vh_driver_remove(struct platform_device *pdev)