summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/rtl28xxu.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-01-21 22:40:58 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-02-28 18:44:25 -0300
commita8567cf22e0efb9faafa6cf33b607ca5aee3c2fa (patch)
tree158208995684ed035053db50970530b3f8c47299 /drivers/media/dvb/dvb-usb/rtl28xxu.c
parent9935eea5ac300b84036192af1bd98940a64650de (diff)
[media] rtl2830: prevent .read_status() when sleeping
Hardware is not accessible when device is sleeping. Preventing such IOCTLs when sleep should be job of DVB CORE... Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/rtl28xxu.c')
-rw-r--r--drivers/media/dvb/dvb-usb/rtl28xxu.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/rtl28xxu.c b/drivers/media/dvb/dvb-usb/rtl28xxu.c
index b5785fa3622..07597c53d07 100644
--- a/drivers/media/dvb/dvb-usb/rtl28xxu.c
+++ b/drivers/media/dvb/dvb-usb/rtl28xxu.c
@@ -608,11 +608,6 @@ static int rtl28xxu_power_ctrl(struct dvb_usb_device *d, int onoff)
sys0 = sys0 & 0x0f;
sys0 |= 0xe0;
} else {
- /*
- * FIXME: Use .fe_ioctl_override() to prevent demod
- * IOCTLs in case of device is powered off. Or change
- * RTL2830 demod not perform requestesd IOCTL & IO when sleep.
- */
gpio &= (~0x01); /* GPIO0 = 0 */
gpio |= 0x10; /* GPIO4 = 1 */
sys0 = sys0 & (~0xc0);