Skip to content

Commit da5293f

Browse files
committed
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 <[email protected]> Reviewed-by: Atish Patra <[email protected]>
1 parent 1bbf361 commit da5293f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/template/platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int platform_ipi_init(bool cold_boot)
107107

108108
/* Example if the generic CLINT driver is used */
109109
if (cold_boot) {
110-
ret = clint_cold_ipi_init(&clint, NULL);
110+
ret = clint_cold_ipi_init(&clint);
111111
if (ret)
112112
return ret;
113113
}
@@ -142,7 +142,7 @@ static int platform_timer_init(bool cold_boot)
142142

143143
/* Example if the generic CLINT driver is used */
144144
if (cold_boot) {
145-
ret = clint_cold_timer_init(&clint);
145+
ret = clint_cold_timer_init(&clint, NULL);
146146
if (ret)
147147
return ret;
148148
}

0 commit comments

Comments
 (0)