[media] af9015: fix i2c failures for dual-tuner devices
authorGordon Hecker <ghecker@gmx.de>
Wed, 14 Mar 2012 13:27:30 +0000 (10:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 22:40:58 +0000 (19:40 -0300)
commitbe4a5e7f0e279b751a23570da583ec41ca32a34f
tree440ce7e2adbf8b8fb41db5cbad8d654f2eaebe91
parentd3db22e10bd4997d244beee6feea5fa39b2e5b82
[media] af9015: fix i2c failures for dual-tuner devices

The i2c failures were caused by enabling both i2c gates
at the same time while putting the tuners asleep.

This patch removes the init() and sleep() callbacks from the tuner,
to prevent frontend.c from calling
  i2c_gate_ctrl
  tuner init / sleep
  i2c_gate_ctrl
without holding the lock.
tuner init() and sleep() are instead called in frontend init() and
sleep().

Signed-off-by: Gordon Hecker <ghecker@gmx.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c
drivers/media/dvb/dvb-usb/af9015.h