OSDN Git Service

pinctrl: thunderbay: Use devm_platform_ioremap_resource()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Mon, 18 Apr 2022 02:02:38 +0000 (02:02 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 22 Apr 2022 22:01:55 +0000 (00:01 +0200)
commit90c0659ed38a9d4709c156f3f7ea900f9afe873f
tree44215cebdb0cbe5608c5cdbef76307f3890378ac
parent8d2d607c6cd8c8bcbfdb8b399a1d28af27bb238d
pinctrl: thunderbay: Use devm_platform_ioremap_resource()

Use the devm_platform_ioremap_resource() helper instead of calling
platform_get_resource() and devm_ioremap_resource() separately.Make the
code simpler without functional changes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220418020238.2556989-1-lv.ruyi@zte.com.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-thunderbay.c