mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
14 lines
722 B
Diff
14 lines
722 B
Diff
Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/drivers/usb/dwc3/dwc3-qcom.c
|
|
===================================================================
|
|
--- linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016.orig/drivers/usb/dwc3/dwc3-qcom.c
|
|
+++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/drivers/usb/dwc3/dwc3-qcom.c
|
|
@@ -669,7 +669,7 @@ static int dwc3_qcom_probe(struct platfo
|
|
/* enable vbus override for device mode */
|
|
if (qcom->mode == USB_DR_MODE_PERIPHERAL)
|
|
dwc3_qcom_vbus_overrride_enable(qcom, true);
|
|
- else if (qcom->device_power_gpio)
|
|
+ else if (!IS_ERR(qcom->device_power_gpio))
|
|
gpiod_set_value(qcom->device_power_gpio, 0);
|
|
|
|
#if defined(CONFIG_IPQ_DWC3_QTI_EXTCON)
|