]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/disk.c
sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation
[people/ms/u-boot.git] / cmd / disk.c
index 2fd1717e6a44680107f2c242ab29855a9baaad41..3d2a3d22045b76b0668c8ee59b6da047bfc0c3f8 100644 (file)
@@ -8,12 +8,11 @@
 #include <command.h>
 #include <part.h>
 
-#if defined(CONFIG_CMD_IDE) || defined(CONFIG_CMD_SCSI) || \
-       defined(CONFIG_USB_STORAGE)
 int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
                    char *const argv[])
 {
-       int dev, part;
+       __maybe_unused int dev;
+       int part;
        ulong addr = CONFIG_SYS_LOAD_ADDR;
        ulong cnt;
        disk_partition_t info;
@@ -129,4 +128,3 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
 
        return bootm_maybe_autostart(cmdtp, argv[0]);
 }
-#endif