commit | 9871b0e5d0f9a5479dddfc5d3a9f47924a996421 | [log] [tgz] |
---|---|---|
author | Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> | Wed Aug 09 09:03:50 2023 +0530 |
committer | Marek Vasut <marex@denx.de> | Fri Aug 25 02:35:40 2023 +0200 |
tree | c08335eac4267d697e04212a00cd9afe9e827864 | |
parent | 291055efee4e1ae4ad0b62393256514a4e76cb1e [diff] |
usb: dwc3: Fix remove function if there is no ulpi_reset gpio As ulpi_reset gpio is now optional, we need to check it when doing the 'dwc3_generic_remove' function. Check if it is declared before accessing the ulpi_reset. Fixes: 237d1f60b1d ("usb: dwc3: Use the devm_gpiod_get_optional() API for reset gpio") Reported-by: Thomas Nizan <tnizan@witekio.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>