[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)
commitf180ebae1ac05805acdb808eb92e63ddbd014934
tree2816a1924464c8421cf87ba68a5aa49a0de3ca32
parent0b9508aa030f8119c20fcf64b4b36bc792b59d41
[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