Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Christophe Leroy and committed by
Linus Walleij
31eb4b55 2e7f6122

+1 -2
+1 -2
drivers/gpio/gpio-max7301.c
··· 56 56 int ret; 57 57 58 58 /* bits_per_word cannot be configured in platform data */ 59 - if (spi->dev.platform_data) 60 - spi->bits_per_word = 16; 59 + spi->bits_per_word = 16; 61 60 ret = spi_setup(spi); 62 61 if (ret < 0) 63 62 return ret;