diff mbox series

[v1,1/1] media: subdev: Replace custom implementation of device_match_fwnode()

Message ID 20220927171618.51971-1-andriy.shevchenko@linux.intel.com
State Accepted
Commit 026df23098b8816df44b46504de79a46f23aecfa
Headers show
Series [v1,1/1] media: subdev: Replace custom implementation of device_match_fwnode() | expand

Commit Message

Andy Shevchenko Sept. 27, 2022, 5:16 p.m. UTC
Replace custom implementation of the device_match_fwnode().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/v4l2-core/v4l2-subdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Nov. 14, 2022, 9:47 a.m. UTC | #1
On Tue, Sep 27, 2022 at 08:16:18PM +0300, Andy Shevchenko wrote:
> Replace custom implementation of the device_match_fwnode().

Sakari, here you are in Cc list and I never have any response on this patch.

Maybe something wrong with emails somewhere?
diff mbox series

Patch

diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c
index 5c27bac772ea..c483dd5575dd 100644
--- a/drivers/media/v4l2-core/v4l2-subdev.c
+++ b/drivers/media/v4l2-core/v4l2-subdev.c
@@ -845,7 +845,7 @@  int v4l2_subdev_get_fwnode_pad_1_to_1(struct media_entity *entity,
 	fwnode = fwnode_graph_get_port_parent(endpoint->local_fwnode);
 	fwnode_handle_put(fwnode);
 
-	if (dev_fwnode(sd->dev) == fwnode)
+	if (device_match_fwnode(sd->dev, fwnode))
 		return endpoint->port;
 
 	return -ENXIO;