diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2013-05-26 05:53:21 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-05 02:10:27 -0400 |
commit | 5c6b3e7725384f02418d80e7dc32b1a690497004 (patch) | |
tree | aeb381dfeaea824ef228cd0f3b8f76854f37cf2d /drivers/dma/imx-dma.c | |
parent | 290ad0f9d954b445788bf26652b239c59cec2060 (diff) |
DMA: imx-dma: imxdma->dev used uninitialized
imxdma->dev is used for dev_warn before it was set.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/imx-dma.c')
-rw-r--r-- | drivers/dma/imx-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 34c54cf08231..ff2aab973b45 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -1067,6 +1067,7 @@ static int __init imxdma_probe(struct platform_device *pdev) | |||
1067 | if (!imxdma) | 1067 | if (!imxdma) |
1068 | return -ENOMEM; | 1068 | return -ENOMEM; |
1069 | 1069 | ||
1070 | imxdma->dev = &pdev->dev; | ||
1070 | imxdma->devtype = pdev->id_entry->driver_data; | 1071 | imxdma->devtype = pdev->id_entry->driver_data; |
1071 | 1072 | ||
1072 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1073 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -1171,7 +1172,6 @@ static int __init imxdma_probe(struct platform_device *pdev) | |||
1171 | &imxdma->dma_device.channels); | 1172 | &imxdma->dma_device.channels); |
1172 | } | 1173 | } |
1173 | 1174 | ||
1174 | imxdma->dev = &pdev->dev; | ||
1175 | imxdma->dma_device.dev = &pdev->dev; | 1175 | imxdma->dma_device.dev = &pdev->dev; |
1176 | 1176 | ||
1177 | imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources; | 1177 | imxdma->dma_device.device_alloc_chan_resources = imxdma_alloc_chan_resources; |