X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fdisk.c;h=8060e753ebda7bec8d58c4c67c00e8578998cb26;hb=ccbda9e68093b0c6019b95596366faec2b19442d;hp=9e635c1172de0fa99a73c4c41ffb49449a681e8e;hpb=79b8d3c285f4f1c2ee4b27367f2ca3ecb76ed9ce;p=oweals%2Fu-boot.git diff --git a/cmd/disk.c b/cmd/disk.c index 9e635c1172..8060e753eb 100644 --- a/cmd/disk.c +++ b/cmd/disk.c @@ -4,17 +4,21 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ #include +#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 +127,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]); }