mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
DMA: imx-dma: imxdma->dev used uninitialized
imxdma->dev is used for dev_warn before it was set. Signed-off-by: Markus Pargmann <[email protected]> Reviewed-by: Shawn Guo <[email protected]> Acked-by: Sascha Hauer <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
290ad0f9d9
commit
5c6b3e7725
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,6 +1067,7 @@ static int __init imxdma_probe(struct platform_device *pdev)
|
|||
if (!imxdma)
|
||||
return -ENOMEM;
|
||||
|
||||
imxdma->dev = &pdev->dev;
|
||||
imxdma->devtype = pdev->id_entry->driver_data;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
|
|
@ -1171,7 +1172,6 @@ static int __init imxdma_probe(struct platform_device *pdev)
|
|||
&imxdma->dma_device.channels);
|
||||
}
|
||||
|
||||
imxdma->dev = &pdev->dev;
|
||||
imxdma->dma_device.dev = &pdev->dev;
|
||||
|
||||
imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources;
|
||||
|
|
|
|||
Loading…
Reference in a new issue