commit | 63d5d86c456bfe9dbdb76c4777f08ee527d1cbcc | [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 | 0205cb40d0cc0da2734af732a6c5e7715ee94f47 [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>