dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
[platform/kernel/linux-starfive.git] / drivers / dma / imx-dma.c
index 3bffe3e..65c6094 100644 (file)
@@ -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);