regulator: stm32-vrefbuf: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 9 Oct 2019 15:01:38 +0000 (23:01 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Oct 2019 17:16:56 +0000 (18:16 +0100)
commit73511a90b74c9cfb6509dae63ec4db2d96b7b203
treee973e0117317ef05f60e63ecc49f50d09e1177f2
parentbe446f183ae35a8c76687ea8203fdd86f3f9678e
regulator: stm32-vrefbuf: use devm_platform_ioremap_resource() to simplify code

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191009150138.11640-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/stm32-vrefbuf.c