diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-10-03 05:56:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 03:13:25 -0400 |
commit | b308fb208e23c3e765cefa45eb868c40c5b9c3e7 (patch) | |
tree | 0ca8ff4e0442bb050ca3e66e1a8418b6ff63f97f /drivers/spi/spi-bcm63xx.c | |
parent | 965199573a9a50dae82ada92eb2b808b739ce949 (diff) |
spi/bcm63xx: remove useless call to bcm63xx_spi_check_transfer()
Calling bcm63xx_spi_check_transfer() with a NULL argument does not do
anything useful that the core spi code is not doing already, remove
this superfluous call.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-bcm63xx.c')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index c7b569567f12..6d97047d9242 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -169,13 +169,6 @@ static int bcm63xx_spi_setup(struct spi_device *spi) | |||
169 | return -EINVAL; | 169 | return -EINVAL; |
170 | } | 170 | } |
171 | 171 | ||
172 | ret = bcm63xx_spi_check_transfer(spi, NULL); | ||
173 | if (ret < 0) { | ||
174 | dev_err(&spi->dev, "setup: unsupported mode bits %x\n", | ||
175 | spi->mode & ~MODEBITS); | ||
176 | return ret; | ||
177 | } | ||
178 | |||
179 | dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n", | 172 | dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n", |
180 | __func__, spi->mode & MODEBITS, spi->bits_per_word, 0); | 173 | __func__, spi->mode & MODEBITS, spi->bits_per_word, 0); |
181 | 174 | ||