Commit c1ee8256 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: pxa-camera: Match with device node, not the port node

V4L2 fwnode matching right now still works based on device nodes, not port
nodes. Fix this.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent fff35d45
...@@ -2350,7 +2350,7 @@ static int pxa_camera_pdata_from_dt(struct device *dev, ...@@ -2350,7 +2350,7 @@ static int pxa_camera_pdata_from_dt(struct device *dev,
pcdev->platform_flags |= PXA_CAMERA_PCLK_EN; pcdev->platform_flags |= PXA_CAMERA_PCLK_EN;
asd->match_type = V4L2_ASYNC_MATCH_FWNODE; asd->match_type = V4L2_ASYNC_MATCH_FWNODE;
remote = of_graph_get_remote_port(np); remote = of_graph_get_remote_port_parent(np);
if (remote) if (remote)
asd->match.fwnode = of_fwnode_handle(remote); asd->match.fwnode = of_fwnode_handle(remote);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment