Merge branch 'spi-4.18' into spi-linus
[muen/linux.git] / drivers / spi / spi-davinci.c
index 577084bb911bad7292f0ea4bcbbf7d0b1b9e35ba..a02099c90c5c2ec64d0315bf93799dcae79fe539 100644 (file)
@@ -217,7 +217,7 @@ static void davinci_spi_chipselect(struct spi_device *spi, int value)
        pdata = &dspi->pdata;
 
        /* program delay transfers if tx_delay is non zero */
-       if (spicfg->wdelay)
+       if (spicfg && spicfg->wdelay)
                spidat1 |= SPIDAT1_WDEL;
 
        /*