diff options
-rw-r--r-- | drivers/spi/spi-fsl-espi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index eea5123abb38..a7e4c284d50a 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -455,8 +455,8 @@ static void fsl_espi_cpu_irq(struct mpc8xxx_spi *mspi, u32 events) mspi->len -= rx_nr_bytes; - if (mspi->rx) { - *(u32 *)mspi->rx = rx_data; + if (rx_nr_bytes && mspi->rx) { + mspi->get_rx(rx_data, mspi); mspi->rx += 4; } } |