]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
spi/bcm63xx: remove useless call to bcm63xx_spi_check_transfer()
authorFlorian Fainelli <florian@openwrt.org>
Wed, 3 Oct 2012 09:56:55 +0000 (11:56 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 07:13:25 +0000 (16:13 +0900)
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>
drivers/spi/spi-bcm63xx.c

index c7b569567f12248f9f435df06f2f40d132330e3d..6d97047d9242dbe495a2d209255f47fa98f24208 100644 (file)
@@ -169,13 +169,6 @@ static int bcm63xx_spi_setup(struct spi_device *spi)
                return -EINVAL;
        }
 
-       ret = bcm63xx_spi_check_transfer(spi, NULL);
-       if (ret < 0) {
-               dev_err(&spi->dev, "setup: unsupported mode bits %x\n",
-                       spi->mode & ~MODEBITS);
-               return ret;
-       }
-
        dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n",
                __func__, spi->mode & MODEBITS, spi->bits_per_word, 0);