From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: [PATCH 5/6] v4l: of: use of_graph_get_remote_endpoint() Date: Thu, 19 Jan 2017 06:37:39 +0000 Message-ID: <87fukf4kwp.wl%kuninori.morimoto.gx@renesas.com> References: <87o9z34l3o.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <87o9z34l3o.wl%kuninori.morimoto.gx@renesas.com> Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring , Frank Rowand Cc: Linux-Kernel , Linux-DT , Laurent , Tomi Valkeinen , David Airlie , Sean Paul , Peter Chen , Peter Ujfalusi , Benoit Parrot , Mauro Carvalho Chehab , Javier Martinez Canillas , Sakari Ailus , Bartlomiej Zolnierkiewicz List-Id: devicetree@vger.kernel.org From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- drivers/media/v4l2-core/v4l2-of.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-of.c b/drivers/media/v4l2-core/v4l2-of.c index 93b3368..b2ed4b3 100644 --- a/drivers/media/v4l2-core/v4l2-of.c +++ b/drivers/media/v4l2-core/v4l2-of.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -284,7 +285,7 @@ int v4l2_of_parse_link(const struct device_node *node, np = of_get_next_parent(np); link->local_node = np; - np = of_parse_phandle(node, "remote-endpoint", 0); + np = of_graph_get_remote_endpoint(node); if (!np) { of_node_put(link->local_node); return -ENOLINK; -- 1.9.1