[media] em28xx: don't sleep on disconnect
authorChris Rankin <rankincj@yahoo.com>
Sat, 20 Aug 2011 19:01:26 +0000 (16:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 3 Sep 2011 23:50:22 +0000 (20:50 -0300)
commit0b8bd83cf393832f1d00096b866d888b75b374c3
tree86b8f92a7fa4c6ee0b71b496859e3a7a319a1794
parent76424a0a50982e4026c7d1d5a0cddc92eecc5969
[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>
drivers/media/common/tuners/tda18271-fe.c
drivers/media/dvb/frontends/cxd2820r_core.c
drivers/media/video/em28xx/em28xx-dvb.c