summaryrefslogtreecommitdiff
path: root/drivers/usb/typec/stusb160x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/typec/stusb160x.c')
-rw-r--r--drivers/usb/typec/stusb160x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/typec/stusb160x.c b/drivers/usb/typec/stusb160x.c
index d21750bbbb44..6eaeba9b096e 100644
--- a/drivers/usb/typec/stusb160x.c
+++ b/drivers/usb/typec/stusb160x.c
@@ -682,8 +682,8 @@ static int stusb160x_probe(struct i2c_client *client)
}
fwnode = device_get_named_child_node(chip->dev, "connector");
- if (IS_ERR(fwnode))
- return PTR_ERR(fwnode);
+ if (!fwnode)
+ return -ENODEV;
/*
* When both VDD and VSYS power supplies are present, the low power