gpio: max7301: Reverting "Do not force SPI speed when using OF Platform"

This patch reverts commit 047b93a359 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>
This commit is contained in:
Christophe Leroy 2013-08-20 08:29:23 +02:00 committed by Linus Walleij
parent 2e7f612264
commit 31eb4b554d
1 changed files with 1 additions and 2 deletions

View 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;