forked from Mirrors/opensbi
lib: sbi: Remove sbi_console_init() and console_init() platform callback
Now that all platforms have been updated to initialize serial console device in early_init(), the sbi_console_init() and console_init() platform callback are redundant hence remove them. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-By: Himanshu Chauhan <hchauhan@ventanamicro.com>
This commit is contained in:
@@ -477,14 +477,3 @@ void sbi_console_set_device(const struct sbi_console_device *dev)
|
||||
|
||||
console_dev = dev;
|
||||
}
|
||||
|
||||
int sbi_console_init(struct sbi_scratch *scratch)
|
||||
{
|
||||
int rc = sbi_platform_console_init(sbi_platform_ptr(scratch));
|
||||
|
||||
/* console is not a necessary device */
|
||||
if (rc == SBI_ENODEV)
|
||||
return 0;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user