static void sb_unload(struct sb_card_config *scc) { sb_dsp_unload(&scc->conf, 0); if(scc->mpu) unload_sbmpu(&scc->mpucnf); kfree(scc); }
static void __devexit remove_one(struct pci_dev *pdev) { struct address_info *hw_config = pci_get_drvdata(pdev); sb_dsp_unload(hw_config, 0); pci_set_drvdata(pdev, NULL); kfree(hw_config); }
static void __exit unload_mad16_mpu(struct address_info *hw_config) { #ifdef CONFIG_MAD16_OLDCARD if (board_type < C929) /* Early chip. No MPU support. Just SB MIDI */ { sb_dsp_unload(hw_config, 0); return; } #endif unload_uart401(hw_config); }
void unload_mad16_mpu(struct address_info *hw_config) { #if defined(CONFIG_MIDI) && defined(CONFIG_MAD16_OLDCARD) if (board_type < C929) /* Early chip. No MPU support. Just SB MIDI */ { sb_dsp_unload(hw_config, 0); return; } #endif #if defined(CONFIG_UART401) && defined(CONFIG_MIDI) unload_uart401(hw_config); #endif }
static inline void __exit unload_trix_sb(struct address_info *hw_config) { sb_dsp_unload(hw_config, mpu); }