mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
media: v4l2-fwnode: fix v4l2_fwnode_parse_link handling
[ Upstream commit453b0c8304
] Currently the driver differentiate the port number property handling for ACPI and DT. This is wrong as because ACPI should use the "reg" val too [1]. [1] https://patchwork.kernel.org/patch/11421985/ Fixes:ca50c197bd
("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Stable-dep-of:d7b13edd4c
("media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7a9619e38c
commit
064e156e9f
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ EXPORT_SYMBOL_GPL(v4l2_fwnode_endpoint_alloc_parse);
|
|||
int v4l2_fwnode_parse_link(struct fwnode_handle *__fwnode,
|
||||
struct v4l2_fwnode_link *link)
|
||||
{
|
||||
const char *port_prop = is_of_node(__fwnode) ? "reg" : "port";
|
||||
const char *port_prop = "reg";
|
||||
struct fwnode_handle *fwnode;
|
||||
|
||||
memset(link, 0, sizeof(*link));
|
||||
|
|
Loading…
Reference in a new issue