From: Giulio Benetti Date: Tue, 18 Oct 2022 21:57:54 +0000 (+0200) Subject: spi: fsl-cpm: substitute empty_zero_page with helper ZERO_PAGE(0) X-Git-Tag: v6.6.17~5835^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3be6acda8241352c57d47b4d7d9968cadcb954ea;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20221018215755.33566-2-giulio.benetti@benettiengineering.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index ee90588..17a44d4 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");