disk: get_device_and_partition() "auto" partition and cleanup
[oweals/u-boot.git] / common / cmd_disk.c
index 8df93444df03119cb59885dab52376cb92f20d9a..ee4e21551b172000b4cdb6c2f191245529163e4e 100644 (file)
@@ -54,7 +54,7 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
        bootstage_mark(BOOTSTAGE_ID_IDE_BOOT_DEVICE);
 
        part = get_device_and_partition(intf, (argc == 3) ? argv[2] : NULL,
-                                       &dev_desc, &info);
+                                       &dev_desc, &info, 1);
        if (part < 0) {
                bootstage_error(BOOTSTAGE_ID_IDE_TYPE);
                return 1;