Commit f3eeba06 authored by Dan Carpenter's avatar Dan Carpenter Committed by Arnd Bergmann

dmaengine: ep93xx: Fix a NULL vs IS_ERR() check in probe()

This was intended to be an IS_ERR() check, not a NULL check.  The
ep93xx_dma_of_probe() function doesn't return NULL pointers.

Fixes: 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7427c5b3
...@@ -1504,7 +1504,7 @@ static int ep93xx_dma_probe(struct platform_device *pdev) ...@@ -1504,7 +1504,7 @@ static int ep93xx_dma_probe(struct platform_device *pdev)
int ret; int ret;
edma = ep93xx_dma_of_probe(pdev); edma = ep93xx_dma_of_probe(pdev);
if (!edma) if (IS_ERR(edma))
return PTR_ERR(edma); return PTR_ERR(edma);
dma_dev = &edma->dma_dev; dma_dev = &edma->dma_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment