aboutsummaryrefslogtreecommitdiff
path: root/cmd/sata.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sata.c')
-rw-r--r--cmd/sata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sata.c b/cmd/sata.c
index 76da1906b7..9c9fe111d1 100644
--- a/cmd/sata.c
+++ b/cmd/sata.c
@@ -27,7 +27,7 @@ int sata_remove(int devnum)
struct udevice *dev;
int rc;
- blk_unbind_all(IF_TYPE_SATA);
+ blk_unbind_all(UCLASS_AHCI);
rc = uclass_find_device(UCLASS_AHCI, devnum, &dev);
if (!rc && !dev)
@@ -111,7 +111,7 @@ static int do_sata(struct cmd_tbl *cmdtp, int flag, int argc,
sata_curr_device = 0;
}
- return blk_common_cmd(argc, argv, IF_TYPE_SATA, &sata_curr_device);
+ return blk_common_cmd(argc, argv, UCLASS_AHCI, &sata_curr_device);
}
U_BOOT_CMD(