diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index b370d292d19c..2ca5f079ff01 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -861,6 +861,8 @@ static void of_register_spi_devices(struct spi_master *master) | |||
861 | spi->mode |= SPI_CPOL; | 861 | spi->mode |= SPI_CPOL; |
862 | if (of_find_property(nc, "spi-cs-high", NULL)) | 862 | if (of_find_property(nc, "spi-cs-high", NULL)) |
863 | spi->mode |= SPI_CS_HIGH; | 863 | spi->mode |= SPI_CS_HIGH; |
864 | if (of_find_property(nc, "spi-3wire", NULL)) | ||
865 | spi->mode |= SPI_3WIRE; | ||
864 | 866 | ||
865 | /* Device speed */ | 867 | /* Device speed */ |
866 | prop = of_get_property(nc, "spi-max-frequency", &len); | 868 | prop = of_get_property(nc, "spi-max-frequency", &len); |