void ucc_fast_free(struct ucc_fast_private * uccf) { if (!uccf) return; if (uccf->ucc_fast_tx_virtual_fifo_base_offset) qe_muram_free(uccf->ucc_fast_tx_virtual_fifo_base_offset); if (uccf->ucc_fast_rx_virtual_fifo_base_offset) qe_muram_free(uccf->ucc_fast_rx_virtual_fifo_base_offset); if (uccf->uf_regs) iounmap(uccf->uf_regs); kfree(uccf); }
void ucc_slow_free(struct ucc_slow_private * uccs) { if (!uccs) return; if (uccs->rx_base_offset) qe_muram_free(uccs->rx_base_offset); if (uccs->tx_base_offset) qe_muram_free(uccs->tx_base_offset); if (uccs->us_pram) { qe_muram_free(uccs->us_pram_offset); uccs->us_pram = NULL; } kfree(uccs); }
void ucc_slow_free(struct ucc_slow_private * uccs) { if (!uccs) return; if (uccs->rx_base_offset) qe_muram_free(uccs->rx_base_offset); if (uccs->tx_base_offset) qe_muram_free(uccs->tx_base_offset); if (uccs->us_pram) qe_muram_free(uccs->us_pram_offset); if (uccs->us_regs) iounmap(uccs->us_regs); kfree(uccs); }