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:
parent
5e2fe1e7c2
commit
a86144da9d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user