]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sun4i: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 4 Sep 2019 13:59:11 +0000 (21:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 16:22:29 +0000 (17:22 +0100)
commit765900bfcbd98e44c09397448ffb76dc7a981fc3
tree8dcd369bfbe5a48d1542a5c13edd4794e10a3f3d
parent6d71390e6a0ccdcee6fabfb56ba96930e1714240
spi: sun4i: 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-30-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun4i.c