Merge tag 'dm-pull-29oct19' of git://git.denx.de/u-boot-dm
[oweals/u-boot.git] / drivers / spi / sandbox_spi.c
index 906401ec8ab46acb242b7cfad857622427a717ba..16473ec7a0b9d5e36d3ca270c98e8b23060f48a7 100644 (file)
@@ -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;
 }