dmaengine: sprd: fix an NULL vs IS_ERR() bug
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 May 2018 08:48:07 +0000 (11:48 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 17 May 2018 04:27:34 +0000 (09:57 +0530)
commitfd8d26adc9a909c0c099265cb62d5e5ec2a87e7e
tree893b264807ec03f619e722dd5b6badc1f33a838e
parente7f063ae1a31e953bd2460d81697d18408f03641
dmaengine: sprd: fix an NULL vs IS_ERR() bug

We recently cleaned this code up but we need to update the error
handling as well.  The devm_ioremap_resource() returns error pointers on
error, never NULL.

Fixes: e7f063ae1a31 ("dmaengine: sprd: Use devm_ioremap_resource() to map memory")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c