]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: ov08x40: Move fwnode_graph_get_next_endpoint() call up
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Dec 2024 14:41:22 +0000 (15:41 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:38 +0000 (15:22 +0100)
commita7966ed7a6a2d15c50b6fddb39e5e3b620e8393b
tree2b04cdb64e0ef9adff1b1d80d53c444e5e98e9ec
parent69dea0ed84611b2b83f4f5fb4f5a1ec4b6bc902d
media: ov08x40: 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.

Make the fwnode_graph_get_next_endpoint() call the first call in
ov08x40_check_hwcfg() and return -EPROBE_DEFER if it fails.

Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
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@xs4all.nl>
drivers/media/i2c/ov08x40.c