diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-05-16 10:48:07 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-05-17 06:27:34 +0200 |
commit | fd8d26adc9a909c0c099265cb62d5e5ec2a87e7e (patch) | |
tree | 893b264807ec03f619e722dd5b6badc1f33a838e /drivers/dma/txx9dmac.c | |
parent | dmaengine: sprd: Use devm_ioremap_resource() to map memory (diff) | |
download | linux-fd8d26adc9a909c0c099265cb62d5e5ec2a87e7e.tar.xz linux-fd8d26adc9a909c0c099265cb62d5e5ec2a87e7e.zip |
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>
Diffstat (limited to 'drivers/dma/txx9dmac.c')
0 files changed, 0 insertions, 0 deletions