Skip to content

Commit c3266ee

Browse files
Fabio Estevamvinodkoul
authored andcommitted
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 <[email protected]> Fixes: 0ab785c ("dmaengine: imx-dma: Remove unused .id_table") Signed-off-by: Fabio Estevam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 820f5ce commit c3266ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/imx-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ static int __init imxdma_probe(struct platform_device *pdev)
10471047
return -ENOMEM;
10481048

10491049
imxdma->dev = &pdev->dev;
1050-
imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev);
1050+
imxdma->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev);
10511051

10521052
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
10531053
imxdma->base = devm_ioremap_resource(&pdev->dev, res);

0 commit comments

Comments
 (0)