aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-25 15:49:46 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-21 15:45:49 (GMT)
commitba02473eaaaa9e579a4bdbe9f15a5ad777764580 (patch)
tree1042e0ae8ca0fa3090205c95931b3a3741e7419d
parent3aecf2c5a9881024dc7742568146e2f9a10f19a6 (diff)
[media] az6007: Simplify the code by removing an uneeded function
Everything to reset the demod is already at az6007_frontend_poweron(). Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/az6007.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c
index 8add81a..912ba67 100644
--- a/drivers/media/dvb/dvb-usb/az6007.c
+++ b/drivers/media/dvb/dvb-usb/az6007.c
@@ -259,34 +259,6 @@ error:
return ret;
}
-static int az6007_frontend_reset(struct dvb_usb_adapter *adap)
-{
- struct usb_device *udev = adap->dev->udev;
- int ret;
-
- deb_info("az6007_frontend_reset adap=%p adap->dev=%p\n", adap, adap->dev);
-
- /* reset demodulator */
- ret = az6007_write(udev, FX2_SCON1, 1, 3, NULL, 0);
- if (ret < 0)
- goto error;
- msleep(200);
- ret = az6007_write(udev, FX2_SCON1, 0, 3, NULL, 0);
- if (ret < 0)
- goto error;
- msleep(200);
- ret = az6007_write(udev, FX2_SCON1, 1, 3, NULL, 0);
- if (ret < 0)
- goto error;
- msleep(200);
-
-error:
- if (ret < 0)
- err("%s failed with error %d", __func__, ret);
-
- return ret;
-}
-
static int az6007_led_on_off(struct usb_interface *intf, int onoff)
{
struct usb_device *udev = interface_to_usbdev(intf);
@@ -309,7 +281,6 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
BUG_ON(!st);
az6007_frontend_poweron(adap);
- az6007_frontend_reset(adap);
info("az6007: attaching demod drxk");
adap->fe = dvb_attach(drxk_attach, &terratec_h7_drxk,

Privacy Policy