diff options
author | Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> | 2023-08-09 09:03:50 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-08-25 02:35:40 +0200 |
commit | 9871b0e5d0f9a5479dddfc5d3a9f47924a996421 (patch) | |
tree | c08335eac4267d697e04212a00cd9afe9e827864 /lib/hash-checksum.c | |
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>
Diffstat (limited to 'lib/hash-checksum.c')
0 files changed, 0 insertions, 0 deletions