media: pxa-camera: Match with device node, not the port node
authorSakari Ailus <sakari.ailus@linux.intel.com>
Sat, 2 Dec 2017 20:29:46 +0000 (15:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 20 Mar 2019 10:35:41 +0000 (06:35 -0400)
V4L2 fwnode matching right now still works based on device nodes, not port
nodes. Fix this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/pxa_camera.c

index 4fe228752a439e752eee498e4ca2e4ee49d511b2..a632f06d9fff59e9440379cfdb72bbe5ad419376 100644 (file)
@@ -2350,7 +2350,7 @@ static int pxa_camera_pdata_from_dt(struct device *dev,
                pcdev->platform_flags |= PXA_CAMERA_PCLK_EN;
 
        asd->match_type = V4L2_ASYNC_MATCH_FWNODE;
-       remote = of_graph_get_remote_port(np);
+       remote = of_graph_get_remote_port_parent(np);
        if (remote)
                asd->match.fwnode = of_fwnode_handle(remote);
        else