diff options
author | Tom Rini <trini@konsulko.com> | 2023-09-04 15:06:35 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-06 13:47:24 -0400 |
commit | 59d2a7d7317b02f8224b5cd207c3318662c7fe15 (patch) | |
tree | 6ecc74e2b0039c8348ada10d4d15696d6577903b | |
parent | 68f446fb9b0b137dd4e288985ed674be5e544a1e (diff) | |
download | u-boot-59d2a7d7317b02f8224b5cd207c3318662c7fe15.zip u-boot-59d2a7d7317b02f8224b5cd207c3318662c7fe15.tar.gz u-boot-59d2a7d7317b02f8224b5cd207c3318662c7fe15.tar.bz2 |
riscv: Correct event usage for riscv_cpu_probe/setup
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>
-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')) { |