]> git.baikalelectronics.ru Git - kernel.git/commit
[media] V4L: soc-camera: call soc_camera_power_on() after adding the client to the...
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 14 Mar 2012 10:22:07 +0000 (07:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:11:05 +0000 (22:11 -0300)
commit8f29ed161e219c680309eaf1c59b7a1833ac09db
tree2bedd0b37c847458ea13e9abbad7e7f662e5cf1c
parentae2c0ff4707a9e6e8f72cea2a6f3cf38607f7012
[media] V4L: soc-camera: call soc_camera_power_on() after adding the client to the host

soc_camera_power_on() calls client's .s_power(1) method, which can try to
access the client hardware. This, however, is typically only possible,
after calling host's .add() method, because that's where the host driver
usually turns the master clock on.

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