]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4f4386f9697f6f5956172353e4e5b2fa5af325b
tree893b264807ec03f619e722dd5b6badc1f33a838e
parent30756020e0536ec99bba4ff360877b8f81486fd7
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: 30756020e053 ("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