serial: stm32: use devm_platform_get_and_ioremap_resource()
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 14 Aug 2021 13:14:18 +0000 (21:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Aug 2021 16:53:15 +0000 (18:53 +0200)
commit3d881e32e295decbc86f5d920bedae929be5bfb0
treee58b6b6e099b1a45a448c3ebc29aba91a47bcc1d
parent59bd4eedf118a0404631038ece6f6a436b98c256
serial: stm32: use devm_platform_get_and_ioremap_resource()

Use devm_platform_get_and_ioremap_resource() to simplify code.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210814131418.13608-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c