Skip to contentSkip to conversation

media: subdev: Replace custom implementation of device_match_fwnode()

PATCH In review Andy Shevchenko 1 participant 2 messages Sep 27, 2022 – Nov 14, 2022 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: subdev: Replace custom implementation of device_match_fwnode()

Replace custom implementation of the device_match_fwnode().

---
 drivers/media/v4l2-core/v4l2-subdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-subdev.c +1 -1
index 5c27bac772ea..c483dd5575dd 100644
@@ -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;
Signature · 1 line
2.35.1
#1 lore raw
Quoted 1 line · Andy Shevchenko

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?

Signature · 2 lines
With Best Regards,
Andy Shevchenko