summaryrefslogtreecommitdiffstats
path: root/cmd/unzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/unzip.c')
-rw-r--r--cmd/unzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/unzip.c b/cmd/unzip.c
index 0686be68ce..a8bcb1f529 100644
--- a/cmd/unzip.c
+++ b/cmd/unzip.c
@@ -43,7 +43,7 @@ U_BOOT_CMD(
static int do_gzwrite(cmd_tbl_t *cmdtp, int flag,
int argc, char * const argv[])
{
- block_dev_desc_t *bdev;
+ struct blk_desc *bdev;
int ret;
unsigned char *addr;
unsigned long length;
@@ -53,7 +53,7 @@ static int do_gzwrite(cmd_tbl_t *cmdtp, int flag,
if (argc < 5)
return CMD_RET_USAGE;
- ret = get_device(argv[1], argv[2], &bdev);
+ ret = blk_get_device_by_str(argv[1], argv[2], &bdev);
if (ret < 0)
return CMD_RET_FAILURE;
OpenPOWER on IntegriCloud