File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,8 @@ EXPORT_SYMBOL_GPL(of_prop_next_string);
576
576
int of_graph_parse_endpoint (const struct device_node * node ,
577
577
struct of_endpoint * endpoint )
578
578
{
579
- struct device_node * port_node = of_get_parent (node );
579
+ struct device_node * port_node __free (device_node ) =
580
+ of_get_parent (node );
580
581
581
582
WARN_ONCE (!port_node , "%s(): endpoint %pOF has no parent node\n" ,
582
583
__func__ , node );
@@ -591,8 +592,6 @@ int of_graph_parse_endpoint(const struct device_node *node,
591
592
of_property_read_u32 (port_node , "reg" , & endpoint -> port );
592
593
of_property_read_u32 (node , "reg" , & endpoint -> id );
593
594
594
- of_node_put (port_node );
595
-
596
595
return 0 ;
597
596
}
598
597
EXPORT_SYMBOL (of_graph_parse_endpoint );
You can’t perform that action at this time.
0 commit comments