From: Christophe Ricard Date: Sun, 17 Jan 2016 10:56:48 +0000 (+0100) Subject: spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN X-Git-Tag: v2016.03-rc3~57^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=674f3609aad39f099a5c3605643a6be124504b96;p=u-boot spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default. Signed-off-by: Christophe Ricard Reviewed-by: Simon Glass Reviewed-by: Jagan Teki --- diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 677c020b11..5561f36762 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -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; }