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: http://review.tizen.org/git/?a=commitdiff_plain;h=674f3609aad39f099a5c3605643a6be124504b96;p=platform%2Fkernel%2Fu-boot.git 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 677c020..5561f36 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; }