Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: omapfb: use of_graph_get_remote_port()

We already have of_graph_get_remote_port(), Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Kuninori Morimoto and committed by
Helge Deller
b03c3519 175ee8f1

+1 -14
+1 -14
drivers/video/fbdev/omap2/omapfb/dss/dss-of.c
··· 117 117 return reg; 118 118 } 119 119 120 - static struct device_node *omapdss_of_get_remote_port(const struct device_node *node) 121 - { 122 - struct device_node *np; 123 - 124 - np = of_graph_get_remote_endpoint(node); 125 - if (!np) 126 - return NULL; 127 - 128 - np = of_get_next_parent(np); 129 - 130 - return np; 131 - } 132 - 133 120 struct omap_dss_device * 134 121 omapdss_of_find_source_for_first_ep(struct device_node *node) 135 122 { ··· 128 141 if (!ep) 129 142 return ERR_PTR(-EINVAL); 130 143 131 - src_port = omapdss_of_get_remote_port(ep); 144 + src_port = of_graph_get_remote_port(ep); 132 145 if (!src_port) { 133 146 of_node_put(ep); 134 147 return ERR_PTR(-EINVAL);