]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:33:03 +0000 (11:33 -0400)
commit89fd99f3fc5e3839e990639925605db62d0e1118
treeb39aa15e485a11792b8e61c0b59130c44dfa6e1a
parente1df9d124c22354ed4a9754308c307546c368af3
media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper

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>
drivers/media/i2c/ov6650.c