Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330630
b: refs/heads/master
c: dd5e52c
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent aab1f06 commit 437b386
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dca4ea3ecb3d33ce49a9bb7d1f40a75bbea8aec
refs/heads/master: dd5e52cdf9e2518e79b634fa2ae1cc86e37cff14
1 change: 0 additions & 1 deletion trunk/drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ struct dvb_usb_adapter {
int (*fe_sleep[MAX_NO_OF_FE_PER_ADAP]) (struct dvb_frontend *);

int active_fe;
int num_frontends_initialized;
};

/**
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ int dvb_usbv2_adapter_frontend_init(struct dvb_usb_adapter *adap)
}
}

adap->num_frontends_initialized = count_registered;

return 0;

err_dvb_unregister_frontend:
Expand All @@ -410,14 +408,12 @@ int dvb_usbv2_adapter_frontend_exit(struct dvb_usb_adapter *adap)
int i;
pr_debug("%s: adap=%d\n", __func__, adap->id);

for (i = adap->num_frontends_initialized - 1; i >= 0; i--) {
for (i = MAX_NO_OF_FE_PER_ADAP - 1; i >= 0; i--) {
if (adap->fe[i]) {
dvb_unregister_frontend(adap->fe[i]);
dvb_frontend_detach(adap->fe[i]);
}
}

adap->num_frontends_initialized = 0;

return 0;
}

0 comments on commit 437b386

Please sign in to comment.