Commit 047b93a3 authored by Christophe Leroy's avatar Christophe Leroy Committed by Linus Walleij

MAX7301 GPIO: Do not force SPI speed when using OF Platform

The bit_per_word can be set in the OF Device tree, so no need to force it as with
the platform_data when using OF Platform
Signed-off-by: default avatarPatrick Vasseur <>
Signed-off-by: default avatarChristophe Leroy <>
Signed-off-by: Linus Walleij's avatarLinus Walleij <>
parent 195c65e8
...@@ -56,7 +56,8 @@ static int max7301_probe(struct spi_device *spi) ...@@ -56,7 +56,8 @@ 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 */
spi->bits_per_word = 16; if (spi->dev.platform_data)
spi->bits_per_word = 16;
ret = spi_setup(spi); ret = spi_setup(spi);
if (ret < 0) if (ret < 0)
return ret; return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment