gpio: max7301: Reverting "Do not force SPI speed when using OF Platform"
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 20 Aug 2013 06:29:23 +0000 (08:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2013 17:44:28 +0000 (19:44 +0200)
This patch reverts commit 047b93a35961f7a6561e6f5dcb040738f822b892 which breaks
MAX7301 GPIO driver because that commit was dependant on a rejected patch that
was implementing selection of SPI speed from the Device Tree.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max7301.c

index 3b16ab7..6e1c984 100644 (file)
@@ -56,8 +56,7 @@ static int max7301_probe(struct spi_device *spi)
        int ret;
 
        /* bits_per_word cannot be configured in platform data */
-       if (spi->dev.platform_data)
-               spi->bits_per_word = 16;
+       spi->bits_per_word = 16;
        ret = spi_setup(spi);
        if (ret < 0)
                return ret;