diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-12-02 23:29:46 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-20 13:35:41 +0300 |
commit | c1ee825686a4bab4fc3ef6b6edac535a32e0bc29 (patch) | |
tree | 1cb64d1ea1ce0a9469bb16edb6574cf0b8ab261c /drivers/media/platform/pxa_camera.c | |
parent | fff35d45e16fae125c6000cb87e254cb634ac7fb (diff) | |
download | linux-c1ee825686a4bab4fc3ef6b6edac535a32e0bc29.tar.xz |
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: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/pxa_camera.c')
-rw-r--r-- | drivers/media/platform/pxa_camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index 4fe228752a43..a632f06d9fff 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 |