X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fdisk.c;h=dbd08a06b2fab771577fe7d912e2524ba3b7bf3c;hb=09140113108541b95d340f3c7b6ee597d31ccc73;hp=9e635c1172de0fa99a73c4c41ffb49449a681e8e;hpb=68deea2308141c26707da44654b273d7b072ab0d;p=oweals%2Fu-boot.git diff --git a/cmd/disk.c b/cmd/disk.c index 9e635c1172..dbd08a06b2 100644 --- a/cmd/disk.c +++ b/cmd/disk.c @@ -4,17 +4,20 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ #include +#include #include +#include +#include #include -int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc, +int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc, char *const argv[]) { __maybe_unused int dev; int part; ulong addr = CONFIG_SYS_LOAD_ADDR; ulong cnt; - disk_partition_t info; + struct disk_partition info; #if defined(CONFIG_LEGACY_IMAGE_FORMAT) image_header_t *hdr; #endif @@ -123,7 +126,7 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc, flush_cache(addr, (cnt+1)*info.blksz); /* Loading ok, update default load address */ - load_addr = addr; + image_load_addr = addr; return bootm_maybe_autostart(cmdtp, argv[0]); }