|
@@ -84,6 +84,7 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node,
|
|
|
ret = nfcmrvl_parse_dt(matched_node, pdata);
|
|
|
if (ret < 0) {
|
|
|
pr_err("Failed to get generic entries\n");
|
|
|
+ of_node_put(matched_node);
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -97,6 +98,8 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node,
|
|
|
else
|
|
|
pdata->break_control = 0;
|
|
|
|
|
|
+ of_node_put(matched_node);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|