OSDN Git Service

spi: s3c64xx: do not configure the device twice
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 28 Jun 2016 02:41:13 +0000 (11:41 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2016 21:45:23 +0000 (22:45 +0100)
commit11f66f0927bd044c17b2c2884d5103f8eb6cab38
treee6cf926210785464cfff851eb95415a5f1ab7e4c
parenta92e7c3d82a1313ab1954e5cdfd8f04efdb4ca78
spi: s3c64xx: do not configure the device twice

At the start of the transfer, the spi_config function is called
twice, the first time when the 3c64xx_spi_prepare_message is
called and the second time with the s3c64xx_spi_transfer_one,
both called from the spi framework.

Remove the first call at the prepare message because in that
point we don't have the imformation about "bit per word" and
frequency.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c