Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31eb4b55 authored by Christophe Leroy's avatar Christophe Leroy Committed by Linus Walleij
Browse files

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



This patch reverts commit 047b93a3 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: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Acked-by: default avatarRoland Stigge <stigge@antcom.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2e7f6122
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -56,7 +56,6 @@ static int max7301_probe(struct spi_device *spi)
	int ret;
	int ret;


	/* bits_per_word cannot be configured in platform data */
	/* 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);
	ret = spi_setup(spi);
	if (ret < 0)
	if (ret < 0)