]> git.itanic.dy.fi Git - linux-stable/commit
media: ov2740: Move fwnode_graph_get_next_endpoint() call up
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 12:39:40 +0000 (13:39 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 13 Dec 2023 12:21:20 +0000 (13:21 +0100)
commit47913c1f554c31350af36130b208a0bf7754e8d0
treefee165c494f8a80052bef8ab43f3b7fc48efd51c
parent846a37cf470f489ad1713e143083d17630c73056
media: ov2740: Move fwnode_graph_get_next_endpoint() call up

If the bridge has not yet setup the fwnode-graph then
the fwnode_property_read_u32("clock-frequency") call will fail.

Move the fwnode_graph_get_next_endpoint() call to above reading
the clock-frequency.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c