[media] V4L2: soc-camera: fix requesting regulators in synchronous case
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 30 Jul 2013 11:01:55 +0000 (08:01 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:03:12 +0000 (09:03 -0300)
commit23272427ccf70d40b3abb81ea92f505adc1bdcd1
treed1f6c54b047f7a755ad65c5bf1a14d7ca65f48c6
parent85e86c6e8d400c6b794e971ee14251e7ad3467aa
[media] V4L2: soc-camera: fix requesting regulators in synchronous case

With synchronous subdevice probing regulators should be requested by the
soc-camera core in soc_camera_pdrv_probe(). Subdevice drivers, supporting
asynchronous probing, call soc_camera_power_init() to request regulators.
Erroneously, the same regulator array is used in the latter case as in
the former, which leads to a failure. This patch fixes it by preventing
the second regulator request from being executed.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/soc_camera.c