forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/drivers/usb/typec/tps6598x.c
....@@ -564,7 +564,6 @@
564564 ret = PTR_ERR(tps->port);
565565 goto err_role_put;
566566 }
567
- fwnode_handle_put(fwnode);
568567
569568 if (status & TPS_STATUS_PLUG_PRESENT) {
570569 ret = tps6598x_connect(tps, status);
....@@ -583,6 +582,7 @@
583582 }
584583
585584 i2c_set_clientdata(client, tps);
585
+ fwnode_handle_put(fwnode);
586586
587587 return 0;
588588