OSDN Git Service

media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Sat, 30 Mar 2019 01:06:09 +0000 (21:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:23:57 +0000 (12:23 +0200)
commit115ccd9ca776c99cf007999d5ac2954f89ade78e
tree129ee743c58184c5ef9fd739ddaf5a98d57f5f95
parent1433d7a0937bae7e556e6f77bbb72caa63a510b4
media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper

[ Upstream commit ccdd85d518d8b9320ace1d87271f0ba2175f21fa ]

In preparation for adding asynchronous subdevice support to the driver,
don't acquire v4l2_clk from the driver .probe() callback as that may
fail if the clock is provided by a bridge driver which may be not yet
initialized.  Move the v4l2_clk_get() to ov6650_video_probe() helper
which is going to be converted to v4l2_subdev_internal_ops.registered()
callback, executed only when the bridge driver is ready.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/soc_camera/ov6650.c