summaryrefslogtreecommitdiff
path: root/drivers/usb/typec/wusb3801.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/typec/wusb3801.c')
-rw-r--r--drivers/usb/typec/wusb3801.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/wusb3801.c b/drivers/usb/typec/wusb3801.c
index 3cc7a15ecbd3..a43a18d4b02e 100644
--- a/drivers/usb/typec/wusb3801.c
+++ b/drivers/usb/typec/wusb3801.c
@@ -364,7 +364,7 @@ static int wusb3801_probe(struct i2c_client *client)
/* Initialize the hardware with the devicetree settings. */
ret = wusb3801_hw_init(wusb3801);
if (ret)
- return ret;
+ goto err_put_connector;
wusb3801->cap.revision = USB_TYPEC_REV_1_2;
wusb3801->cap.accessory[0] = TYPEC_ACCESSORY_AUDIO;