spi: s3c24xx: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 4 Sep 2019 13:59:07 +0000 (21:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 16:21:31 +0000 (17:21 +0100)
commitb38f1f9b6e108a4d73107c93e470f5a20b1ca982
tree1ba487ae27d1c9b42aa64d204318d533d0f5c5c0
parent7d4c208326a0eae8eb296d2c35e1eed59accd9e5
spi: s3c24xx: 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-26-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c24xx.c