File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -625,18 +625,16 @@ static int tps6598x_probe(struct i2c_client *client)
625
625
if (ret < 0 )
626
626
return ret ;
627
627
628
- fwnode = device_get_named_child_node (& client -> dev , "connector" );
629
- if (!fwnode )
630
- return - ENODEV ;
631
-
632
628
/*
633
629
* This fwnode has a "compatible" property, but is never populated as a
634
630
* struct device. Instead we simply parse it to read the properties.
635
631
* This breaks fw_devlink=on. To maintain backward compatibility
636
632
* with existing DT files, we work around this by deleting any
637
633
* fwnode_links to/from this fwnode.
638
634
*/
639
- fw_devlink_purge_absent_suppliers (fwnode );
635
+ fwnode = device_get_named_child_node (& client -> dev , "connector" );
636
+ if (fwnode )
637
+ fw_devlink_purge_absent_suppliers (fwnode );
640
638
641
639
tps -> role_sw = fwnode_usb_role_switch_get (fwnode );
642
640
if (IS_ERR (tps -> role_sw )) {
You can’t perform that action at this time.
0 commit comments