]> 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)
commitcc8604fbf293549a9aa36fd7f4db40cd3a7ed97c
tree8dcd369bfbe5a48d1542a5c13edd4794e10a3f3d
parent1b60ce9030f90bd384f41cdd79217ccfe005fa35
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