]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cmd: fpga: Fix wrong preprocessor guard for loadb help text
authorMichal Simek <michal.simek@amd.com>
Tue, 7 Apr 2026 08:07:11 +0000 (10:07 +0200)
committerMichal Simek <michal.simek@amd.com>
Thu, 23 Apr 2026 09:49:48 +0000 (11:49 +0200)
The help text for the "fpga loadb" command was incorrectly guarded by
CONFIG_CMD_FPGA_LOADP instead of CONFIG_CMD_FPGA_LOADB. This meant the
loadb help text would only be shown when LOADP was enabled, rather than
when LOADB was enabled.

Fix the preprocessor condition to use the correct config option.

Fixes: f8f378877b8f ("fpga: add new symbol for fpga_loadb")
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/366dfe78e2028f53a6274da75547fb68844764cc.1775549229.git.michal.simek@amd.com
cmd/fpga.c

index d51c380d7b3eefe20481a2ab8832a8826fbad1c3..d347a70029064f1302b559d17baedefd094a7eda 100644 (file)
@@ -417,7 +417,7 @@ U_BOOT_CMD(fpga, 6, 1, do_fpga_wrapper,
         "info   [dev]                  List known device information\n"
         "fpga dump   <dev> <address> <size> Load device to memory buffer\n"
         "fpga load   <dev> <address> <size> Load device from memory buffer\n"
-#if defined(CONFIG_CMD_FPGA_LOADP)
+#if defined(CONFIG_CMD_FPGA_LOADB)
         "fpga loadb  <dev> <address> <size> Load device from bitstream buffer\n"
 #endif
 #if defined(CONFIG_CMD_FPGA_LOADP)