thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 5 Jun 2021 12:02:05 +0000 (20:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 14 Jun 2021 17:01:15 +0000 (19:01 +0200)
commitd7539260cd9ad9c18eaf2a1ff71401abdbdfb5cb
tree53f28a42eaee7ab9a776fa3b9de5fbbde26b93fe
parenta052b5118f13febac1bd901fe0b7a807b9d6b51c
thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()

Use devm_platform_get_and_ioremap_resource() to simplify
code and remove error message which within
devm_platform_get_and_ioremap_resource() already.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210605120205.2459578-1-yangyingliang@huawei.com
drivers/thermal/st/st_thermal_memmap.c