summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_typec_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/chrome/cros_typec_switch.c')
-rw-r--r--drivers/platform/chrome/cros_typec_switch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_typec_switch.c b/drivers/platform/chrome/cros_typec_switch.c
index 9ed1605f4071..752720483753 100644
--- a/drivers/platform/chrome/cros_typec_switch.c
+++ b/drivers/platform/chrome/cros_typec_switch.c
@@ -270,6 +270,7 @@ static int cros_typec_register_switches(struct cros_typec_switch_data *sdata)
return 0;
err_switch:
+ fwnode_handle_put(fwnode);
cros_typec_unregister_switches(sdata);
return ret;
}