From 50a212ec906f7524620675f0c57357691c26c81f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 16 Oct 2024 01:20:19 +0000
Subject: [PATCH] 修改GPIO导出默认初始值
---
kernel/drivers/usb/typec/tps6598x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/usb/typec/tps6598x.c b/kernel/drivers/usb/typec/tps6598x.c
index 6cb5c8e..4722b7f 100644
--- a/kernel/drivers/usb/typec/tps6598x.c
+++ b/kernel/drivers/usb/typec/tps6598x.c
@@ -564,7 +564,6 @@
ret = PTR_ERR(tps->port);
goto err_role_put;
}
- fwnode_handle_put(fwnode);
if (status & TPS_STATUS_PLUG_PRESENT) {
ret = tps6598x_connect(tps, status);
@@ -583,6 +582,7 @@
}
i2c_set_clientdata(client, tps);
+ fwnode_handle_put(fwnode);
return 0;
--
Gitblit v1.6.2