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 void unload_mpu (fm801_devc * devc) { struct address_info hw_config; hw_config.io_base = -devc->mpu_base; hw_config.irq = devc->mpu_irq; hw_config.dma = -1; hw_config.dma2 = -1; hw_config.always_detect = 0; hw_config.name = "FM801 MPU-401"; hw_config.driver_use_1 = 0; hw_config.driver_use_2 = 0; hw_config.osdev = devc->osdev; #ifdef CREATE_OSP CREATE_OSP (hw_config.osdev); #endif hw_config.card_subtype = 0; devc->mpu_attached = 0; unload_uart401 (&hw_config); }
static inline void __exit unload_trix_mpu(struct address_info *hw_config) { unload_uart401(hw_config); }
static void __exit cleanup_uart401(void) { if (cfg_mpu.io_base != -1 && cfg_mpu.irq != -1) unload_uart401(&cfg_mpu); }