]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/unzip.c
mmc: use the generic error number
[people/ms/u-boot.git] / cmd / unzip.c
index 0686be68ce0a857ead08ff840a23c444284f30fb..a8bcb1f529d2e60df610d44d9c3a6dbc498ce3f0 100644 (file)
@@ -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;