[media] of: move graph helpers from drivers/media/v4l2-core to drivers/of
[firefly-linux-kernel-4.4.55.git] / drivers / media / platform / exynos4-is / media-dev.c
index c1bce170df6fbce44d519a498bf6d19694389306..d0f82da59ac54cbc8c30fa1dc514161994620b63 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/of_device.h>
+#include <linux/of_graph.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/types.h>
@@ -473,7 +474,7 @@ static int fimc_md_parse_port_node(struct fimc_md *fmd,
 
        pd->mux_id = (endpoint.port - 1) & 0x1;
 
-       rem = v4l2_of_get_remote_port_parent(ep);
+       rem = of_graph_get_remote_port_parent(ep);
        of_node_put(ep);
        if (rem == NULL) {
                v4l2_info(&fmd->v4l2_dev, "Remote device at %s not found\n",