aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/sbus/char/envctrl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index 56e962a01493..b8481927bfe4 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -910,8 +910,10 @@ static void envctrl_init_i2c_child(struct device_node *dp,
910 for (len = 0; len < PCF8584_MAX_CHANNELS; ++len) { 910 for (len = 0; len < PCF8584_MAX_CHANNELS; ++len) {
911 pchild->mon_type[len] = ENVCTRL_NOMON; 911 pchild->mon_type[len] = ENVCTRL_NOMON;
912 } 912 }
913 of_node_put(root_node);
913 return; 914 return;
914 } 915 }
916 of_node_put(root_node);
915 } 917 }
916 918
917 /* Get the monitor channels. */ 919 /* Get the monitor channels. */