diff options
author | Chris Rankin <rankincj@yahoo.com> | 2011-08-20 15:01:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 19:50:22 -0400 |
commit | 0b8bd83cf393832f1d00096b866d888b75b374c3 (patch) | |
tree | 86b8f92a7fa4c6ee0b71b496859e3a7a319a1794 /drivers/media/common/tuners/tda18271-fe.c | |
parent | 76424a0a50982e4026c7d1d5a0cddc92eecc5969 (diff) |
[media] em28xx: don't sleep on disconnect
The DVB framework will try to power-down an adapter that no-one is using
any more, but this assumes that the adapter is still connected to the
machine. That's not always true for a USB adapter, so disable the sleep
operations when the adapter has been physically unplugged.
This prevents I2C write failures with error -19 from appearing
occasionally in the dmesg log.
Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tda18271-fe.c')
-rw-r--r-- | drivers/media/common/tuners/tda18271-fe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c index 57022e88e338..63cc4004e211 100644 --- a/drivers/media/common/tuners/tda18271-fe.c +++ b/drivers/media/common/tuners/tda18271-fe.c | |||
@@ -1230,7 +1230,7 @@ static int tda18271_set_config(struct dvb_frontend *fe, void *priv_cfg) | |||
1230 | return 0; | 1230 | return 0; |
1231 | } | 1231 | } |
1232 | 1232 | ||
1233 | static struct dvb_tuner_ops tda18271_tuner_ops = { | 1233 | static const struct dvb_tuner_ops tda18271_tuner_ops = { |
1234 | .info = { | 1234 | .info = { |
1235 | .name = "NXP TDA18271HD", | 1235 | .name = "NXP TDA18271HD", |
1236 | .frequency_min = 45000000, | 1236 | .frequency_min = 45000000, |