Fix rt parameter setting for spi device
authorMiroslav Ondra <ondra@faster.cz>
Sun, 25 Apr 2021 10:51:38 +0000 (12:51 +0200)
committerMiroslav Ondra <ondra@faster.cz>
Sun, 25 Apr 2021 10:51:38 +0000 (12:51 +0200)
modules/unipi/src/unipi_spi.c

index 0b829b1adf5dc7c74d999e470b172773f574f8b0..b6576ee58d82ed1e6adcbc3c5626bb133fc1a46a 100644 (file)
@@ -1238,7 +1238,7 @@ s32 neuronspi_spi_probe(struct spi_device *spi)
        spi->bits_per_word      = 8;
        spi->mode                   = spi->mode ? spi->mode : SPI_MODE_0;
        spi->max_speed_hz       = spi->max_speed_hz ? spi->max_speed_hz : 12000000;
-       spi->master->rt = 1;
+       spi->rt = 1;
        ret = spi_setup(spi);
        if (ret) {
         kfree(n_spi);