]> git.baikalelectronics.ru Git - kernel.git/commit
spi: oc-tiny: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 4 Sep 2019 13:59:03 +0000 (21:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2019 16:20:33 +0000 (17:20 +0100)
commit0b247ee68769ecc701fdac58b9a0cbcbdf2d06a3
tree4457464fc5e35cdadab62cbddbd091d2a1f7d6ae
parentddbc02c47471feea191f483a4b6b6ddca326200e
spi: oc-tiny: 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-22-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-oc-tiny.c