diff options
author | Mark Brown <broonie@kernel.org> | 2019-11-22 19:56:33 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-22 19:56:33 +0000 |
commit | 8f3ed6d0b0db04db8297d951c26c809dd7b4778d (patch) | |
tree | 5813c89fa9245eb00e617b6dab89ddfe4a029184 /drivers/spi/spi-fsl-cpm.c | |
parent | af42d3466bdc8f39806b26f593604fdc54140bcb (diff) | |
parent | c5923243eb3208ea63b5ed7905610039c4ca5201 (diff) | |
download | talos-op-linux-8f3ed6d0b0db04db8297d951c26c809dd7b4778d.tar.gz talos-op-linux-8f3ed6d0b0db04db8297d951c26c809dd7b4778d.zip |
Merge branch 'spi-5.4' into spi-linus
Diffstat (limited to 'drivers/spi/spi-fsl-cpm.c')
-rw-r--r-- | drivers/spi/spi-fsl-cpm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index 858f0544289e..54ad0ac121e5 100644 --- a/drivers/spi/spi-fsl-cpm.c +++ b/drivers/spi/spi-fsl-cpm.c @@ -392,7 +392,8 @@ void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) dma_unmap_single(dev, mspi->dma_dummy_rx, SPI_MRBLR, DMA_FROM_DEVICE); dma_unmap_single(dev, mspi->dma_dummy_tx, PAGE_SIZE, DMA_TO_DEVICE); cpm_muram_free(cpm_muram_offset(mspi->tx_bd)); - cpm_muram_free(cpm_muram_offset(mspi->pram)); + if (!(mspi->flags & SPI_CPM1)) + cpm_muram_free(cpm_muram_offset(mspi->pram)); fsl_spi_free_dummy_rx(); } EXPORT_SYMBOL_GPL(fsl_spi_cpm_free); |