From: Peter Griffin Date: Tue, 7 Jun 2016 17:38:35 +0000 (+0100) Subject: dmaengine: fsl-edma: print error code in error messages. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a86144da9d1a439733a5aea526fe7c7b28b31d4a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/fsl-edma.c b/drivers/dma/fsl-edma.c index 7208fc906ac1..cc06eeaef1a7 100644 --- a/drivers/dma/fsl-edma.c +++ b/drivers/dma/fsl-edma.c @@ -963,14 +963,16 @@ static int fsl_edma_probe(struct platform_device *pdev) ret = dma_async_device_register(&fsl_edma->dma_dev); 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); return ret; } ret = of_dma_controller_register(np, fsl_edma_xlate, fsl_edma); 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); fsl_disable_clocks(fsl_edma); return ret;