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