]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: ov2640: add async probe function
authorJosh Wu <josh.wu@atmel.com>
Mon, 2 Mar 2015 01:52:38 +0000 (22:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:34:42 +0000 (18:34 -0300)
commit859e235e8d3def47132ee381c605871040bc5b36
tree2816a1924464c8421cf87ba68a5aa49a0de3ca32
parent24a3f87249a2a836cd94ca70a81e123a4b0f7114
[media] media: ov2640: add async probe function

In async probe, there is a case that ov2640 is probed before the
host device which provided 'mclk'.
To support this async probe, we will get 'mclk' at first in the probe(),
if failed it will return -EPROBE_DEFER. That will let ov2640 wait for
the host device probed.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/soc_camera/ov2640.c