media: i2c: ov8858: Don't set fwnode in the driver
authorOndrej Jirman <megi@xff.cz>
Tue, 10 Oct 2023 07:07:44 +0000 (09:07 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Oct 2023 13:26:16 +0000 (15:26 +0200)
commitc46f16f156ac58afcf4addc850bb5dfbca77b9fc
treee75e918f14ba6178020259be2d3c500da64109c7
parent1d4c25854aac872e6d3d1dad5dc5eb580d18ac6c
media: i2c: ov8858: Don't set fwnode in the driver

This makes the driver work with the new check in
v4l2_async_register_subdev() that was introduced recently in 6.6-rc1.
Without this change, probe fails with:

ov8858 1-0036: Detected OV8858 sensor, revision 0xb2
ov8858 1-0036: sub-device fwnode is an endpoint!
ov8858 1-0036: v4l2 async register subdev failed
ov8858: probe of 1-0036 failed with error -22

This also simplifies the driver a bit.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov8858.c