aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2013-03-22 08:10:09 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 11:05:18 -0400
commit047b93a35961f7a6561e6f5dcb040738f822b892 (patch)
tree0c70cd436868f8a4ca76926c4d570a0e56ae26c1 /drivers/gpio
parent195c65e83ccc0094bc4143176a1b21de2ba9237b (diff)
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: Patrick Vasseur <patrick.vasseur@c-s.fr> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-max7301.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max7301.c b/drivers/gpio/gpio-max7301.c
index 6e1c984a75d4..3b16ab701630 100644
--- a/drivers/gpio/gpio-max7301.c
+++ b/drivers/gpio/gpio-max7301.c
@@ -56,7 +56,8 @@ static int max7301_probe(struct spi_device *spi)
56 int ret; 56 int ret;
57 57
58 /* bits_per_word cannot be configured in platform data */ 58 /* bits_per_word cannot be configured in platform data */
59 spi->bits_per_word = 16; 59 if (spi->dev.platform_data)
60 spi->bits_per_word = 16;
60 ret = spi_setup(spi); 61 ret = spi_setup(spi);
61 if (ret < 0) 62 if (ret < 0)
62 return ret; 63 return ret;