]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 13:08:57 +0000 (14:08 +0100)
commita18a7cc55c5b092679b2c7928c9ce9a7e9cb7e75
tree591bc8a7adcc0206508cc50c451a50337e1def5e
parentd4c3cb925e65330de72ff61b942e66c5d354cf38
media: i2c: ov8858: Don't set fwnode in the driver

[ Upstream commit c46f16f156ac58afcf4addc850bb5dfbca77b9fc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/ov8858.c