aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/sandbox_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/sandbox_spi.c')
-rw-r--r--drivers/spi/sandbox_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c
index 906401ec8ab..16473ec7a0b 100644
--- a/drivers/spi/sandbox_spi.c
+++ b/drivers/spi/sandbox_spi.c
@@ -117,7 +117,7 @@ static int sandbox_cs_info(struct udevice *bus, uint cs,
{
/* Always allow activity on CS 0 */
if (cs >= 1)
- return -ENODEV;
+ return -EINVAL;
return 0;
}