diff options
author | Baolin Wang | 2018-05-09 05:23:50 +0200 |
---|---|---|
committer | Vinod Koul | 2018-05-09 08:13:17 +0200 |
commit | e7f063ae1a31e953bd2460d81697d18408f03641 (patch) | |
tree | 54b88a914e42b0453fbee8ad3430b088fb3f7b9a /mm/mmzone.c | |
parent | dmaengine: sprd: Fix potential NULL dereference in sprd_dma_probe() (diff) | |
download | kernel-qcow2-linux-e7f063ae1a31e953bd2460d81697d18408f03641.tar.gz kernel-qcow2-linux-e7f063ae1a31e953bd2460d81697d18408f03641.tar.xz kernel-qcow2-linux-e7f063ae1a31e953bd2460d81697d18408f03641.zip |
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>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions