From 119b15a5535bc6f466a7f89857fcce820fe2b290 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Thu, 4 Jul 2024 21:09:17 +0530 Subject: 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 Reviewed-By: Himanshu Chauhan --- lib/sbi/sbi_console.c | 11 ----------- lib/sbi/sbi_init.c | 4 ---- 2 files changed, 15 deletions(-) (limited to 'lib') diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c index d3ec461..194529d 100644 --- a/lib/sbi/sbi_console.c +++ b/lib/sbi/sbi_console.c @@ -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; -} diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 0f9e14c..d80efe9 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -261,10 +261,6 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) if (rc) sbi_hart_hang(); - rc = sbi_console_init(scratch); - if (rc) - sbi_hart_hang(); - rc = sbi_sse_init(scratch, true); if (rc) { sbi_printf("%s: sse init failed (error %d)\n", __func__, rc); -- cgit v1.1