usb: gadget: udc: udc-xilinx: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Wed, 26 Jul 2023 11:37:51 +0000 (19:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:24:08 +0000 (10:24 +0200)
commit187eeae3e9c7a1c315e5077b1d35c6622d0c28a1
tree3653dd5b80fe6d9706e2f22e5fe4594e9667e629
parentad089faf79e5ab949a301d60611842254060adb6
usb: gadget: udc: udc-xilinx: 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-5-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c