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>
Fri, 31 May 2019 13:46:17 +0000 (06:46 -0700)
commit3ccd89123b67865dda047a7586d31759bc0e17af
treef00dbba10a83a498273647129de96f9c7b24351c
parent81a0b6ff0209a6daa2f1d98033511dd618847508
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/ov6650.c