spi: cadence: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 4 Sep 2019 13:58:50 +0000 (21:58 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 16:17:07 +0000 (17:17 +0100)
commit4585bb92a57605984faa49c8f9f36b8a9b14bb12
tree2090dbf7d6cc5ff0c9bbe7a0351da5f0dc1f4a03
parente364c8c204db786b15978aabd2459bba3f4f09a6
spi: cadence: use devm_platform_ioremap_resource() to simplify code

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190904135918.25352-9-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c