2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00

dmaengine: fsl-edma: print error code in error messages.

It is useful to print the error code as part of the error
message.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
Peter Griffin 2016-06-07 18:38:35 +01:00 committed by Vinod Koul
parent 5e2fe1e7c2
commit a86144da9d

View File

@ -963,14 +963,16 @@ static int fsl_edma_probe(struct platform_device *pdev)
ret = dma_async_device_register(&fsl_edma->dma_dev); ret = dma_async_device_register(&fsl_edma->dma_dev);
if (ret) { if (ret) {
dev_err(&pdev->dev, "Can't register Freescale eDMA engine.\n"); dev_err(&pdev->dev,
"Can't register Freescale eDMA engine. (%d)\n", ret);
fsl_disable_clocks(fsl_edma); fsl_disable_clocks(fsl_edma);
return ret; return ret;
} }
ret = of_dma_controller_register(np, fsl_edma_xlate, fsl_edma); ret = of_dma_controller_register(np, fsl_edma_xlate, fsl_edma);
if (ret) { if (ret) {
dev_err(&pdev->dev, "Can't register Freescale eDMA of_dma.\n"); dev_err(&pdev->dev,
"Can't register Freescale eDMA of_dma. (%d)\n", ret);
dma_async_device_unregister(&fsl_edma->dma_dev); dma_async_device_unregister(&fsl_edma->dma_dev);
fsl_disable_clocks(fsl_edma); fsl_disable_clocks(fsl_edma);
return ret; return ret;