]> git.baikalelectronics.ru Git - kernel.git/commit
[media] soc-camera: fix repeated regulator requesting
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 3 Jan 2013 14:21:02 +0000 (11:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Jan 2013 03:35:54 +0000 (01:35 -0200)
commitff71f71195c0ea3cfa70ec00a1d8dda6136a1229
treeb8f5043edc341af33c67c886cf050db5ee362311
parent2250cb994fb3d4b7aea04139e1dfe2ba33f5a68f
[media] soc-camera: fix repeated regulator requesting

Currently devm_regulator_bulk_get() is called by soc-camera during host
driver probing, but regulators are attached to the camera platform
device, that is staying, independent whether the host probed successfully
or not. This can lead to repeated regulator requesting, if the host
driver is re-probed. Move the call to platform device probing to avoid
this.

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