usb: gadget: aspeed: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Wed, 26 Jul 2023 11:37:52 +0000 (19:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:24:08 +0000 (10:24 +0200)
commit3318f9c1a87b0c4983141cd1740fc553214b9f42
tree9189caf6626a0e0241aede13f106ab4da6dd7c46
parent187eeae3e9c7a1c315e5077b1d35c6622d0c28a1
usb: gadget: aspeed: Use devm_platform_get_and_ioremap_resource()

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230726113816.888-6-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/aspeed-vhub/core.c