]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
spi: Remove duplicate code to set default bits_per_word setting
authorAxel Lin <axel.lin@ingics.com>
Fri, 17 Jan 2014 10:53:40 +0000 (18:53 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 17 Jan 2014 15:54:22 +0000 (15:54 +0000)
commit23061f1eb844edd349c3a0f5f40e244c9d2abfde
treee7b8cc5fe643faac2472ddcf0fc14c3ef325be78
parent81e53d0470878165a300d75ac06a5bc5eee543a2
spi: Remove duplicate code to set default bits_per_word setting

The implementation in spi_setup() already set spi->bits_per_word = 8 when
spi->bits_per_word is 0 before calling spi->master->setup.
So we don't need to do it again in setup() callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-davinci.c
drivers/spi/spi-fsl-dspi.c
drivers/spi/spi-mxs.c
drivers/spi/spi-rspi.c
drivers/spi/spi-sc18is602.c
drivers/spi/spi-sh.c
drivers/spi/spi-sirf.c
drivers/spi/spi-topcliff-pch.c