spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN
[oweals/u-boot.git] / drivers / spi / spi-uclass.c
index 677c020b110251fcac33251f5446c5eb80ede925..5561f36762f9c6e45eff240c5e377920b96a0482 100644 (file)
@@ -158,6 +158,7 @@ static int spi_child_pre_probe(struct udevice *dev)
        slave->max_hz = plat->max_hz;
        slave->mode = plat->mode;
        slave->mode_rx = plat->mode_rx;
+       slave->wordlen = SPI_DEFAULT_WORDLEN;
 
        return 0;
 }