mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
platform: template: Fix compile error
This clint driver init functions were incorrectly used in template platform which resulted in compile error. This patch fixes clint driver function usage in template platform. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -107,7 +107,7 @@ static int platform_ipi_init(bool cold_boot)
|
||||
|
||||
/* Example if the generic CLINT driver is used */
|
||||
if (cold_boot) {
|
||||
ret = clint_cold_ipi_init(&clint, NULL);
|
||||
ret = clint_cold_ipi_init(&clint);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ static int platform_timer_init(bool cold_boot)
|
||||
|
||||
/* Example if the generic CLINT driver is used */
|
||||
if (cold_boot) {
|
||||
ret = clint_cold_timer_init(&clint);
|
||||
ret = clint_cold_timer_init(&clint, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user