aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx231xx/cx231xx-avcore.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-01-31 16:25:39 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 20:31:59 -0300
commit38f5ddc1bf12887c0abe287de359e853e12fcc19 (patch)
tree314e80c1da8afe070e28eb3427f89947b0397d05 /drivers/media/video/cx231xx/cx231xx-avcore.c
parent2f86138706d3b5c85a69e72ca2959717372386dd (diff)
downloadkernel_samsung_smdk4412-38f5ddc1bf12887c0abe287de359e853e12fcc19.zip
kernel_samsung_smdk4412-38f5ddc1bf12887c0abe287de359e853e12fcc19.tar.gz
kernel_samsung_smdk4412-38f5ddc1bf12887c0abe287de359e853e12fcc19.tar.bz2
[media] cx231xx: Allow some boards to not use I2C port 3
Some devices don't need to use it. So allow to just disable this logic. Having it enabled on some devices cause power management to complain, generating error -71. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-avcore.c')
-rw-r--r--drivers/media/video/cx231xx/cx231xx-avcore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c
index b80bccf..62843d3 100644
--- a/drivers/media/video/cx231xx/cx231xx-avcore.c
+++ b/drivers/media/video/cx231xx/cx231xx-avcore.c
@@ -1271,6 +1271,8 @@ int cx231xx_enable_i2c_port_3(struct cx231xx *dev, bool is_port_3)
int status = 0;
bool current_is_port_3;
+ if (dev->board.dont_use_port_3)
+ is_port_3 = false;
status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER,
PWR_CTL_EN, value, 4);
if (status < 0)