Message ID | 20220623132536.6585-1-pali@kernel.org |
---|---|
State | Accepted |
Commit | 2c0073aadd0296f2b83c39260933089e18961f78 |
Delegated to: | Peng Fan |
Headers | show |
Series | [v2] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro | expand |
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 947bbc9a5ab7..ffa9aebad1c0 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -224,8 +224,11 @@ int checkboard(void) val = (in & io_config) | (out & (~io_config)); puts("rom_loc: "); - if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) { + if (0) { +#ifdef __SW_BOOT_SD + } else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) { puts("sd"); +#endif #ifdef __SW_BOOT_SD2 } else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD2) { puts("sd");
Add #ifdef guard for __SW_BOOT_SD macro like there are guards for all other __SW_BOOT_* macros. Signed-off-by: Pali Rohár <pali@kernel.org> --- Changes in v2: * Rebase on top of next branch, commit 9121478ee6f2aee381f8fe49d8997d43527d351a --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)