From a5d5a38064d98e69027b90daa8b91c765d5eef81 Mon Sep 17 00:00:00 2001 From: Dmitri Belimov Date: Tue, 23 Dec 2008 03:50:09 -0300 Subject: [PATCH] --- yaml --- r: 125534 b: refs/heads/master c: 899a6f67b90206c330bd93c7c8f3f8bb8b80397a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/media/dvb/frontends/zl10353.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index fe636dedd66a..161bed29e6a9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91f7c130c277a08ebef92ac23ed60adc62e505e0 +refs/heads/master: 899a6f67b90206c330bd93c7c8f3f8bb8b80397a diff --git a/trunk/drivers/media/dvb/frontends/zl10353.c b/trunk/drivers/media/dvb/frontends/zl10353.c index 5506f80e180e..170720b02815 100644 --- a/trunk/drivers/media/dvb/frontends/zl10353.c +++ b/trunk/drivers/media/dvb/frontends/zl10353.c @@ -587,8 +587,15 @@ static int zl10353_init(struct dvb_frontend *fe) static int zl10353_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) { + struct zl10353_state *state = fe->demodulator_priv; u8 val = 0x0a; + if (state->config.no_tuner) { + /* No tuner attached to the internal I2C bus */ + /* If set enable I2C bridge, the main I2C bus stopped hardly */ + return 0; + } + if (enable) val |= 0x10;