diff options
author | Fabio Estevam <festevam@denx.de> | 2022-07-06 13:13:27 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-07-21 14:38:35 +0200 |
commit | c3266ee185b59e5aab3e0f982e5b7f95d31555a7 (patch) | |
tree | 0c07321b7148b839a5dd9234abe6f50d37c0f449 /drivers/dma | |
parent | dmaengine: dw-axi-dmac: ignore interrupt if no descriptor (diff) | |
download | linux-c3266ee185b59e5aab3e0f982e5b7f95d31555a7.tar.xz linux-c3266ee185b59e5aab3e0f982e5b7f95d31555a7.zip |
dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:
drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 0ab785c894e6 ("dmaengine: imx-dma: Remove unused .id_table")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20220706111327.940764-1-festevam@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 3bffe3ecbd1b..65c6094ce063 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -1047,7 +1047,7 @@ static int __init imxdma_probe(struct platform_device *pdev) return -ENOMEM; imxdma->dev = &pdev->dev; - imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev); + imxdma->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); imxdma->base = devm_ioremap_resource(&pdev->dev, res); |