diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2022-10-18 23:57:54 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-19 13:05:37 +0100 |
commit | 3be6acda8241352c57d47b4d7d9968cadcb954ea (patch) | |
tree | 80f125e5e584b5ecb3e65e0d92d138de6eeb2b3a /drivers/spi/spi-fsl-cpm.c | |
parent | 666ea0ad932fbdc82644457f1a78f4584801f698 (diff) | |
download | linux-3be6acda8241352c57d47b4d7d9968cadcb954ea.tar.gz linux-3be6acda8241352c57d47b4d7d9968cadcb954ea.tar.bz2 linux-3be6acda8241352c57d47b4d7d9968cadcb954ea.zip |
spi: fsl-cpm: substitute empty_zero_page with helper ZERO_PAGE(0)
Not all zero page implementations use empty_zero_page global pointer so
let's substitute empty_zero_page occurence with helper ZERO_PAGE(0).
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Link: https://lore.kernel.org/r/20221018215755.33566-2-giulio.benetti@benettiengineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-cpm.c')
-rw-r--r-- | drivers/spi/spi-fsl-cpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index ee905880769e..17a44d4f5021 100644 --- a/drivers/spi/spi-fsl-cpm.c +++ b/drivers/spi/spi-fsl-cpm.c @@ -333,7 +333,7 @@ int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi) goto err_bds; } - mspi->dma_dummy_tx = dma_map_single(dev, empty_zero_page, PAGE_SIZE, + mspi->dma_dummy_tx = dma_map_single(dev, ZERO_PAGE(0), PAGE_SIZE, DMA_TO_DEVICE); if (dma_mapping_error(dev, mspi->dma_dummy_tx)) { dev_err(dev, "unable to map dummy tx buffer\n"); |