platform: template: Fix compile error
authorAnup Patel <anup.patel@wdc.com>
Mon, 18 Jan 2021 03:59:33 +0000 (09:29 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 18 Jan 2021 09:19:56 +0000 (14:49 +0530)
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>
platform/template/platform.c

index 758e95f..5bdb186 100644 (file)
@@ -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;
        }