static void __exit playpaq_asoc_exit(void) { struct at32_ssc_info *ssc_p = playpaq_wm8510_dai.cpu_dai->private_data; struct ssc_device *ssc; if (ssc_p != NULL) { ssc = ssc_p->ssc; if (ssc != NULL) ssc_free(ssc); ssc_p->ssc = NULL; } if (_gclk0 != NULL) { clk_put(_gclk0); _gclk0 = NULL; } if (_pll0 != NULL) { clk_put(_pll0); _pll0 = NULL; } #if defined CONFIG_AT32_ENHANCED_PORTMUX at32_free_pin(MCLK_PIN); #endif platform_device_unregister(playpaq_snd_device); playpaq_snd_device = NULL; }
static void __exit playpaq_asoc_exit(void) { if (_gclk0 != NULL) { clk_put(_gclk0); _gclk0 = NULL; } if (_pll0 != NULL) { clk_put(_pll0); _pll0 = NULL; } #if defined CONFIG_AT32_ENHANCED_PORTMUX at32_free_pin(MCLK_PIN); #endif platform_device_unregister(playpaq_snd_device); playpaq_snd_device = NULL; }