Message ID | 20220706111327.940764-1-festevam@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c3266ee185b59e5aab3e0f982e5b7f95d31555a7 |
Headers | show |
Series | [v2] dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t) | expand |
On 06-07-22, 08:13, Fabio Estevam wrote: > From: Fabio Estevam <festevam@denx.de> > > Change the of_device_get_match_data() cast to (uintptr_t) > to silence the following clang warning: Applied, thanks
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);