Merge tag 'dm-pull-29oct19' of git://git.denx.de/u-boot-dm
[oweals/u-boot.git] / drivers / spi / bcm63xx_spi.c
index 4d19e03523fb3fb1bcbdb9b0199129274287b45f..69f88c9e0873e7006bd4c6cdc5564ea26017c759 100644 (file)
@@ -130,7 +130,7 @@ static int bcm63xx_spi_cs_info(struct udevice *bus, uint cs,
 
        if (cs >= priv->num_cs) {
                printf("no cs %u\n", cs);
-               return -ENODEV;
+               return -EINVAL;
        }
 
        return 0;