summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9035.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-03-30 17:15:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-09 14:43:01 -0300
commit5a9abae497f8c9e08c919d80fefcaeaf1cf9ab73 (patch)
treecbc863202b1991d43a4ee800c6ed318a6c5f2552 /drivers/media/dvb/dvb-usb/af9035.c
parent7f882c2e353ca58695e9b4fcc9e97a9d4cbcf273 (diff)
downloadlinux-5a9abae497f8c9e08c919d80fefcaeaf1cf9ab73.tar.bz2
[media] af9035: enhancement for unknown tuner ID handling
* do not attach frontend when tuner is not supported * fix unkown tuner ID log write format * add prefix for dvb-usb log writings 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/af9035.c')
-rw-r--r--drivers/media/dvb/dvb-usb/af9035.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c
index 6606cf52ea98..b8cd27ae161b 100644
--- a/drivers/media/dvb/dvb-usb/af9035.c
+++ b/drivers/media/dvb/dvb-usb/af9035.c
@@ -489,10 +489,9 @@ static int af9035_read_mac_address(struct dvb_usb_device *d, u8 mac[6])
af9035_af9033_config[i].spec_inv = 1;
break;
default:
- warn("tuner ID=%20x not supported, please report!",
+ af9035_config.hw_not_supported = true;
+ warn("tuner ID=%02x not supported, please report!",
tmp);
- ret = -ENODEV;
- goto err;
};
/* tuner IF frequency */
@@ -535,6 +534,11 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap)
{
int ret;
+ if (af9035_config.hw_not_supported) {
+ ret = -ENODEV;
+ goto err;
+ }
+
if (adap->id == 0) {
ret = af9035_wr_reg(adap->dev, 0x00417f,
af9035_af9033_config[1].i2c_addr);