media: ti-vpe: cal: use of_graph_get_remote_endpoint()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 24 Jul 2017 01:36:54 +0000 (21:36 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:33:43 +0000 (06:33 -0400)
Now, we can use of_graph_get_remote_endpoint(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/ti-vpe/cal.c

index 177faa36bc1644f2603d32ffc505b1d8b71afdf7..0c7ddf894a6966bfedb219ec3e966bfe369677c4 100644 (file)
@@ -1702,7 +1702,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
        asd->match_type = V4L2_ASYNC_MATCH_FWNODE;
        asd->match.fwnode.fwnode = of_fwnode_handle(sensor_node);
 
-       remote_ep = of_parse_phandle(ep_node, "remote-endpoint", 0);
+       remote_ep = of_graph_get_remote_endpoint(ep_node);
        if (!remote_ep) {
                ctx_dbg(3, ctx, "can't get remote-endpoint\n");
                goto cleanup_exit;