mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
media: subdev: Replace custom implementation of device_match_fwnode()
Replace custom implementation of the device_match_fwnode(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
b9fbe29c59
commit
026df23098
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ int v4l2_subdev_get_fwnode_pad_1_to_1(struct media_entity *entity,
|
||||||
fwnode = fwnode_graph_get_port_parent(endpoint->local_fwnode);
|
fwnode = fwnode_graph_get_port_parent(endpoint->local_fwnode);
|
||||||
fwnode_handle_put(fwnode);
|
fwnode_handle_put(fwnode);
|
||||||
|
|
||||||
if (dev_fwnode(sd->dev) == fwnode)
|
if (device_match_fwnode(sd->dev, fwnode))
|
||||||
return endpoint->port;
|
return endpoint->port;
|
||||||
|
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|
Loading…
Reference in a new issue