dmaengine: sprd: Use devm_ioremap_resource() to map memory
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 9 May 2018 03:23:50 +0000 (11:23 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 9 May 2018 06:13:17 +0000 (11:43 +0530)
commite7f063ae1a31e953bd2460d81697d18408f03641
tree54b88a914e42b0453fbee8ad3430b088fb3f7b9a
parente891e41ee301a57fc74a4a0d4da60fdc9669e50c
dmaengine: sprd: Use devm_ioremap_resource() to map memory

Instead of checking the return value of platform_get_resource(), we can
use devm_ioremap_resource() which has the NULL pointer check and the
memory region requesting.

Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c