From: Valentin Longchamp Date: Tue, 9 Feb 2010 10:59:12 +0000 (-0300) Subject: V4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers X-Git-Tag: v2.6.35-rc1~480^2~419 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535653b1c22c29d4e8f554928efc87fe138f917d;p=pandora-kernel.git V4L/DVB: mt9t031: use runtime pm support to restore ADDRESS_MODE registers If the platform hooks are provided, soc_camera powers off the device on close and powers it on on open. This resets the ADDRESS_MODE registers which then can be different to the value the driver has computed for them. This patch setups runtime pm usage for mt9t031 and uses the resume function to write the ADDRESS_MODE registers in order to fix the above described problem. Signed-off-by: Valentin Longchamp Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed