static int audio_buf_free(struct poseidon *p) { struct poseidon_audio *pa = &p->audio; int i; for (i = 0; i < AUDIO_BUFS; i++) if (pa->urb_array[i]) usb_kill_urb(pa->urb_array[i]); free_all_urb_generic(pa->urb_array, AUDIO_BUFS); logpm(); return 0; }
static void dvb_urb_cleanup(struct pd_dvb_adapter *pd_dvb) { free_all_urb_generic(pd_dvb->urb_array, DVB_SBUF_NUM); }