diff options
-rw-r--r-- | drivers/gpio/gpio-max7301.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-max7301.c b/drivers/gpio/gpio-max7301.c index 3b16ab701630..6e1c984a75d4 100644 --- a/drivers/gpio/gpio-max7301.c +++ b/drivers/gpio/gpio-max7301.c | |||
@@ -56,8 +56,7 @@ 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 | if (spi->dev.platform_data) | 59 | spi->bits_per_word = 16; |
60 | spi->bits_per_word = 16; | ||
61 | ret = spi_setup(spi); | 60 | ret = spi_setup(spi); |
62 | if (ret < 0) | 61 | if (ret < 0) |
63 | return ret; | 62 | return ret; |