summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-02-05 15:39:48 -0700
committerTom Rini <[email protected]>2023-02-09 16:32:26 -0500
commit821d1df52a411ccbd6d891394ce2ea2b09f0057a (patch)
tree177b0b5156ad044775b03691e960c4849af86025
parentbed722328b152fe2ae48b382b5f73eebf449ffad (diff)
Correct SPL uses of ENV_IS_IN_UBI
This converts 2 usages of this option to the non-SPL form, since there is no SPL_ENV_IS_IN_UBI defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
-rw-r--r--board/engicam/stm32mp1/stm32mp1.c2
-rw-r--r--board/st/stm32mp1/stm32mp1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/engicam/stm32mp1/stm32mp1.c b/board/engicam/stm32mp1/stm32mp1.c
index 0a3e580f5b4..5223e9bae8d 100644
--- a/board/engicam/stm32mp1/stm32mp1.c
+++ b/board/engicam/stm32mp1/stm32mp1.c
@@ -68,7 +68,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
case BOOT_FLASH_NAND:
case BOOT_FLASH_SPINAND:
- if (CONFIG_IS_ENABLED(ENV_IS_IN_UBI))
+ if (IS_ENABLED(CONFIG_ENV_IS_IN_UBI))
return ENVL_UBI;
else
return ENVL_NOWHERE;
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index ec6f0b43f28..1318ba8951a 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -831,7 +831,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
case BOOT_FLASH_NAND:
case BOOT_FLASH_SPINAND:
- if (CONFIG_IS_ENABLED(ENV_IS_IN_UBI))
+ if (IS_ENABLED(CONFIG_ENV_IS_IN_UBI))
return ENVL_UBI;
else
return ENVL_NOWHERE;