]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Correct event usage for riscv_cpu_probe/setup
authorTom Rini <trini@konsulko.com>
Mon, 4 Sep 2023 19:06:35 +0000 (15:06 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 6 Sep 2023 17:47:24 +0000 (13:47 -0400)
With having both an EVENT_SPY_SIMPLE setup for both riscv_cpu_probe and
riscv_cpu_setup we do not need the latter function to call the former
function as it will already have been done in time.

Fixes: 1c55d62fb9cc ("riscv: cpu: make riscv_cpu_probe to EVT_DM_POST_INIT_R callback")
Tested-by: Milan P. Stanić <mps@arvanta.net>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/riscv/cpu/cpu.c

index cfe9fdc9df5573c0e88027ab54d0d68f377581c5..c1a9638c1ab7f3ab1054d7250115c3a8ddcdb272 100644 (file)
@@ -94,11 +94,7 @@ static void dummy_pending_ipi_clear(ulong hart, ulong arg0, ulong arg1)
 
 int riscv_cpu_setup(void)
 {
-       int ret;
-
-       ret = riscv_cpu_probe(ctx, event);
-       if (ret)
-               return ret;
+       int __maybe_unused ret;
 
        /* Enable FPU */
        if (supports_extension('d') || supports_extension('f')) {