diff options
author | Tom Rini <trini@konsulko.com> | 2023-09-04 13:44:36 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-04 13:45:53 -0400 |
commit | 8d165e31e6ddeda995faff97fbd9127bd6692e5c (patch) | |
tree | 6ecc74e2b0039c8348ada10d4d15696d6577903b | |
parent | 849e505debf5077a2e9b374f4e7468109c990bef (diff) | |
download | u-boot-WIP/04Sep2023-next.zip u-boot-WIP/04Sep2023-next.tar.gz u-boot-WIP/04Sep2023-next.tar.bz2 |
riscv: Correct event usage for riscv_cpu_probe/setupWIP/04Sep2023-next
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")
Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Rick Chen <rick@andestech.com>
Cc: Leo Yu-Chi Liang <ycliang@andestech.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Nikita Shubin <n.shubin@yadro.com>
Cc: Chanho Park <chanho61.park@samsung.com>
Cc: Yu Chien Peter Lin <peterlin@andestech.com>
-rw-r--r-- | arch/riscv/cpu/cpu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index cfe9fdc..c1a9638 100644 --- a/arch/riscv/cpu/cpu.c +++ b/arch/riscv/cpu/cpu.c @@ -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')) { |