diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-10 15:34:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-14 12:41:09 -0300 |
commit | 208d8af509455ebf25f25f974c9907c0eb1a2b0a (patch) | |
tree | 401b008724ca7e4ec5d9ada8558524d59075955f | |
parent | f0b0ada7184cca44bb5ae96903eca304cc20eec5 (diff) | |
download | blackbird-obmc-linux-208d8af509455ebf25f25f974c9907c0eb1a2b0a.tar.gz blackbird-obmc-linux-208d8af509455ebf25f25f974c9907c0eb1a2b0a.zip |
[media] dtt200u-fe: don't keep waiting for lock at set_frontend()
It is up to the frontend kthread to wait for lock.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/usb/dvb-usb/dtt200u-fe.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/media/usb/dvb-usb/dtt200u-fe.c b/drivers/media/usb/dvb-usb/dtt200u-fe.c index c09332bd99cb..9bb15f7b48db 100644 --- a/drivers/media/usb/dvb-usb/dtt200u-fe.c +++ b/drivers/media/usb/dvb-usb/dtt200u-fe.c @@ -105,8 +105,6 @@ static int dtt200u_fe_set_frontend(struct dvb_frontend *fe) { struct dtv_frontend_properties *fep = &fe->dtv_property_cache; struct dtt200u_fe_state *state = fe->demodulator_priv; - int i; - enum fe_status st; u16 freq = fep->frequency / 250000; u8 bwbuf[2] = { SET_BANDWIDTH, 0 },freqbuf[3] = { SET_RF_FREQ, 0, 0 }; @@ -130,13 +128,6 @@ static int dtt200u_fe_set_frontend(struct dvb_frontend *fe) freqbuf[2] = (freq >> 8) & 0xff; dvb_usb_generic_write(state->d,freqbuf,3); - for (i = 0; i < 30; i++) { - msleep(20); - dtt200u_fe_read_status(fe, &st); - if (st & FE_TIMEDOUT) - continue; - } - return 0; } |