spi: spi-qcom-qspi: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 4 Sep 2019 13:59:05 +0000 (21:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 16:21:12 +0000 (17:21 +0100)
commite0ea3cc2baf600d71fddf692e27da2e580233140
tree5bec8bb02cea24be15dcc35a3e914ddc5faa462f
parente751032bcbd73667dde1a640109653a64f45a7d1
spi: spi-qcom-qspi: 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-24-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qcom-qspi.c