LinuxTV Patchwork [3/4] pxa-camera: Match with device node, not the port node

login
register
mail settings
Submitter Sakari Ailus
Date March 5, 2019, 1:56 p.m.
Message ID <20190305135602.24199-4-sakari.ailus@linux.intel.com>
Download mbox | patch
Permalink /patch/54849/
State Accepted
Headers show

Comments

Sakari Ailus - March 5, 2019, 1:56 p.m.
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>
---
 drivers/media/platform/pxa_camera.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c
index 3cf3c6390cc8..f729519f34e1 100644
--- a/drivers/media/platform/pxa_camera.c
+++ b/drivers/media/platform/pxa_camera.c
@@ -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

Privacy Policy