diff options
Diffstat (limited to 'drivers/coresight/of_coresight.c')
-rw-r--r-- | drivers/coresight/of_coresight.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/coresight/of_coresight.c b/drivers/coresight/of_coresight.c index c3efa418a86d..6f75e9d5b6fb 100644 --- a/drivers/coresight/of_coresight.c +++ b/drivers/coresight/of_coresight.c | |||
@@ -52,15 +52,6 @@ of_coresight_get_endpoint_device(struct device_node *endpoint) | |||
52 | endpoint, of_dev_node_match); | 52 | endpoint, of_dev_node_match); |
53 | } | 53 | } |
54 | 54 | ||
55 | static struct device_node *of_get_coresight_endpoint( | ||
56 | const struct device_node *parent, struct device_node *prev) | ||
57 | { | ||
58 | struct device_node *node = of_graph_get_next_endpoint(parent, prev); | ||
59 | |||
60 | of_node_put(prev); | ||
61 | return node; | ||
62 | } | ||
63 | |||
64 | static void of_coresight_get_ports(struct device_node *node, | 55 | static void of_coresight_get_ports(struct device_node *node, |
65 | int *nr_inport, int *nr_outport) | 56 | int *nr_inport, int *nr_outport) |
66 | { | 57 | { |
@@ -68,7 +59,7 @@ static void of_coresight_get_ports(struct device_node *node, | |||
68 | int in = 0, out = 0; | 59 | int in = 0, out = 0; |
69 | 60 | ||
70 | do { | 61 | do { |
71 | ep = of_get_coresight_endpoint(node, ep); | 62 | ep = of_graph_get_next_endpoint(node, ep); |
72 | if (!ep) | 63 | if (!ep) |
73 | break; | 64 | break; |
74 | 65 | ||
@@ -140,7 +131,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( | |||
140 | /* Iterate through each port to discover topology */ | 131 | /* Iterate through each port to discover topology */ |
141 | do { | 132 | do { |
142 | /* Get a handle on a port */ | 133 | /* Get a handle on a port */ |
143 | ep = of_get_coresight_endpoint(node, ep); | 134 | ep = of_graph_get_next_endpoint(node, ep); |
144 | if (!ep) | 135 | if (!ep) |
145 | break; | 136 | break; |
146 | 137 | ||