Skip to content
Commit 9871b0e5 authored by Venkatesh Yadav Abbarapu's avatar Venkatesh Yadav Abbarapu Committed by Marek Vasut
Browse files

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: 237d1f60 ("usb: dwc3: Use the devm_gpiod_get_optional()
		     API for reset gpio")

Reported-by: default avatarThomas Nizan <tnizan@witekio.com>
Signed-off-by: default avatarVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
parent 291055ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment