From: Guennadi Liakhovetski Date: Tue, 30 Jul 2013 11:01:55 +0000 (-0300) Subject: [media] V4L2: soc-camera: fix requesting regulators in synchronous case X-Git-Tag: v3.12-rc1~135^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23272427ccf70d40b3abb81ea92f505adc1bdcd1;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed