Commit 5c6b3e77 authored by Markus Pargmann's avatar Markus Pargmann Committed by Vinod Koul

DMA: imx-dma: imxdma->dev used uninitialized

imxdma->dev is used for dev_warn before it was set.
Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
Reviewed-by: default avatarShawn Guo <shawn.guo@linaro.org>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 290ad0f9
...@@ -1067,6 +1067,7 @@ static int __init imxdma_probe(struct platform_device *pdev) ...@@ -1067,6 +1067,7 @@ static int __init imxdma_probe(struct platform_device *pdev)
if (!imxdma) if (!imxdma)
return -ENOMEM; return -ENOMEM;
imxdma->dev = &pdev->dev;
imxdma->devtype = pdev->id_entry->driver_data; imxdma->devtype = pdev->id_entry->driver_data;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
...@@ -1171,7 +1172,6 @@ static int __init imxdma_probe(struct platform_device *pdev) ...@@ -1171,7 +1172,6 @@ static int __init imxdma_probe(struct platform_device *pdev)
&imxdma->dma_device.channels); &imxdma->dma_device.channels);
} }
imxdma->dev = &pdev->dev;
imxdma->dma_device.dev = &pdev->dev; imxdma->dma_device.dev = &pdev->dev;
imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources; imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment