We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8291be commit da6d91eCopy full SHA for da6d91e
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c
@@ -209,8 +209,8 @@ static int qcom_pmic_typec_probe(struct platform_device *pdev)
209
platform_set_drvdata(pdev, tcpm);
210
211
tcpm->tcpc.fwnode = device_get_named_child_node(tcpm->dev, "connector");
212
- if (IS_ERR(tcpm->tcpc.fwnode))
213
- return PTR_ERR(tcpm->tcpc.fwnode);
+ if (!tcpm->tcpc.fwnode)
+ return -EINVAL;
214
215
tcpm->tcpm_port = tcpm_register_port(tcpm->dev, &tcpm->tcpc);
216
if (IS_ERR(tcpm->tcpm_port)) {
0 commit comments