File tree Expand file tree Collapse file tree 7 files changed +10
-27
lines changed Expand file tree Collapse file tree 7 files changed +10
-27
lines changed Original file line number Diff line number Diff line change 28
28
#include <linux/debugfs.h>
29
29
#include <linux/pm_runtime.h>
30
30
#include <linux/of.h>
31
+ #include <linux/of_graph.h>
31
32
#include <linux/of_platform.h>
32
33
#include <linux/component.h>
33
34
@@ -5079,7 +5080,7 @@ static int dsi_probe_of(struct platform_device *pdev)
5079
5080
struct device_node * ep ;
5080
5081
struct omap_dsi_pin_config pin_cfg ;
5081
5082
5082
- ep = omapdss_of_get_first_endpoint (node );
5083
+ ep = of_graph_get_endpoint_by_regs (node , 0 , -1 );
5083
5084
if (!ep )
5084
5085
return 0 ;
5085
5086
Original file line number Diff line number Diff line change @@ -130,32 +130,14 @@ static struct device_node *omapdss_of_get_remote_port(const struct device_node *
130
130
return np ;
131
131
}
132
132
133
- struct device_node *
134
- omapdss_of_get_first_endpoint (const struct device_node * parent )
135
- {
136
- struct device_node * port , * ep ;
137
-
138
- port = omapdss_of_get_next_port (parent , NULL );
139
-
140
- if (!port )
141
- return NULL ;
142
-
143
- ep = omapdss_of_get_next_endpoint (port , NULL );
144
-
145
- of_node_put (port );
146
-
147
- return ep ;
148
- }
149
- EXPORT_SYMBOL_GPL (omapdss_of_get_first_endpoint );
150
-
151
133
struct omap_dss_device *
152
134
omapdss_of_find_source_for_first_ep (struct device_node * node )
153
135
{
154
136
struct device_node * ep ;
155
137
struct device_node * src_port ;
156
138
struct omap_dss_device * src ;
157
139
158
- ep = omapdss_of_get_first_endpoint (node );
140
+ ep = of_graph_get_endpoint_by_regs (node , 0 , -1 );
159
141
if (!ep )
160
142
return ERR_PTR (- EINVAL );
161
143
Original file line number Diff line number Diff line change 20
20
#include <linux/pm_runtime.h>
21
21
#include <linux/clk.h>
22
22
#include <linux/of.h>
23
+ #include <linux/of_graph.h>
23
24
#include <linux/regulator/consumer.h>
24
25
#include <linux/component.h>
25
26
#include <video/omapfb_dss.h>
@@ -529,7 +530,7 @@ static int hdmi_probe_of(struct platform_device *pdev)
529
530
struct device_node * ep ;
530
531
int r ;
531
532
532
- ep = omapdss_of_get_first_endpoint (node );
533
+ ep = of_graph_get_endpoint_by_regs (node , 0 , -1 );
533
534
if (!ep )
534
535
return 0 ;
535
536
Original file line number Diff line number Diff line change 25
25
#include <linux/pm_runtime.h>
26
26
#include <linux/clk.h>
27
27
#include <linux/of.h>
28
+ #include <linux/of_graph.h>
28
29
#include <linux/regulator/consumer.h>
29
30
#include <linux/component.h>
30
31
#include <video/omapfb_dss.h>
@@ -561,7 +562,7 @@ static int hdmi_probe_of(struct platform_device *pdev)
561
562
struct device_node * ep ;
562
563
int r ;
563
564
564
- ep = omapdss_of_get_first_endpoint (node );
565
+ ep = of_graph_get_endpoint_by_regs (node , 0 , -1 );
565
566
if (!ep )
566
567
return 0 ;
567
568
Original file line number Diff line number Diff line change 24
24
#include <linux/regulator/consumer.h>
25
25
#include <linux/pm_runtime.h>
26
26
#include <linux/of.h>
27
+ #include <linux/of_graph.h>
27
28
#include <linux/component.h>
28
29
29
30
#include <video/omapfb_dss.h>
@@ -764,7 +765,7 @@ static int venc_probe_of(struct platform_device *pdev)
764
765
u32 channels ;
765
766
int r ;
766
767
767
- ep = omapdss_of_get_first_endpoint (node );
768
+ ep = of_graph_get_endpoint_by_regs (node , 0 , -1 );
768
769
if (!ep )
769
770
return 0 ;
770
771
Original file line number Diff line number Diff line change @@ -2171,7 +2171,7 @@ static int of_get_pxafb_mode_info(struct device *dev,
2171
2171
u32 bus_width ;
2172
2172
int ret , i ;
2173
2173
2174
- np = of_graph_get_next_endpoint (dev -> of_node , NULL );
2174
+ np = of_graph_get_endpoint_by_regs (dev -> of_node , 0 , -1 );
2175
2175
if (!np ) {
2176
2176
dev_err (dev , "could not find endpoint\n" );
2177
2177
return - EINVAL ;
Original file line number Diff line number Diff line change @@ -819,9 +819,6 @@ struct device_node *
819
819
omapdss_of_get_next_endpoint (const struct device_node * parent ,
820
820
struct device_node * prev );
821
821
822
- struct device_node *
823
- omapdss_of_get_first_endpoint (const struct device_node * parent );
824
-
825
822
struct omap_dss_device *
826
823
omapdss_of_find_source_for_first_ep (struct device_node * node );
827
824
#else
You can’t perform that action at this time.
0 commit comments