summaryrefslogtreecommitdiff
path: root/drivers/ata/sata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata.c')
-rw-r--r--drivers/ata/sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c
index dcb5fcf476..64fc078bad 100644
--- a/drivers/ata/sata.c
+++ b/drivers/ata/sata.c
@@ -65,7 +65,7 @@ int sata_rescan(bool verbose)
ret = uclass_find_first_device(UCLASS_AHCI, &dev);
if (ret || !dev) {
printf("Cannot find SATA device (err=%d)\n", ret);
- return -ENOSYS;
+ return -ENOENT;
}
ret = device_remove(dev, DM_REMOVE_NORMAL);