summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-01-18 06:59:33 +0300
committerAnup Patel <anup@brainfault.org>2021-01-18 12:19:56 +0300
commitda5293f7425964b7eae554711fc507003db9881b (patch)
tree0328297ae5efcfffd877ff4e9c93e2cdab73fd9c
parent1bbf36183ef5beeeb6358ff4450611c9c76a2ea2 (diff)
downloadopensbi-da5293f7425964b7eae554711fc507003db9881b.tar.xz
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>
-rw-r--r--platform/template/platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index 758e95f..5bdb186 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -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;
}