@@ -491,7 +491,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
/* If no dev_part_str, use bootdevice environment variable */
if (!dev_part_str || !strlen(dev_part_str) ||
!strcmp(dev_part_str, "-"))
- dev_part_str = env_get("bootdevice");
+ dev_part_str = env_get(ctx_uboot, "bootdevice");
/* If still no dev_part_str, it's an error */
if (!dev_part_str) {
@@ -132,7 +132,7 @@ struct rigid_disk_block *get_rdisk(struct blk_desc *dev_desc)
int limit;
char *s;
- s = env_get("amiga_scanlimit");
+ s = env_get(ctx_uboot, "amiga_scanlimit");
if (s)
limit = simple_strtoul(s, NULL, 10);
else
@@ -172,7 +172,7 @@ struct bootcode_block *get_bootcode(struct blk_desc *dev_desc)
int limit;
char *s;
- s = env_get("amiga_scanlimit");
+ s = env_get(ctx_uboot, "amiga_scanlimit");
if (s)
limit = simple_strtoul(s, NULL, 10);
else
env_xxx(...) -> env_xxx(ctx_uboot, ...) Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- disk/part.c | 2 +- disk/part_amiga.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)