summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9035.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9035.c')
-rw-r--r--drivers/media/dvb/dvb-usb/af9035.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c
index d2c84ee290a8..d97f45e39f4f 100644
--- a/drivers/media/dvb/dvb-usb/af9035.c
+++ b/drivers/media/dvb/dvb-usb/af9035.c
@@ -615,7 +615,6 @@ static int af9035_read_mac_address(struct dvb_usb_device *d, u8 mac[6])
state->af9033_config[i].spec_inv = 1;
break;
default:
- state->hw_not_supported = true;
warn("tuner ID=%02x not supported, please report!",
tmp);
};
@@ -809,7 +808,8 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap)
struct state *state = adap->dev->priv;
int ret;
- if (state->hw_not_supported) {
+ if (!state->af9033_config[adap->id].tuner) {
+ /* unsupported tuner */
ret = -ENODEV;
goto err;
}