static void __exit msm8960_audio_exit(void) { if (!cpu_is_msm8960() && !cpu_is_msm8930()) { pr_err("%s: Not the right machine type\n", __func__); return ; } msm8960_free_headset_mic_gpios(); platform_device_unregister(msm8960_snd_device); kfree(tabla_mbhc_cal); }
static void __exit msm8960_audio_exit(void) { if (!cpu_is_msm8960() && !cpu_is_msm8930()) { pr_err("%s: Not the right machine type\n", __func__); return ; } msm8960_free_headset_mic_gpios(); platform_device_unregister(msm8960_snd_device); platform_device_unregister(msm8960_snd_tabla1x_device); kfree(mbhc_cfg.calibration); mutex_destroy(&cdc_mclk_mutex); }
static void __exit msm8960_audio_exit(void) { msm8960_free_headset_mic_gpios(); platform_device_unregister(msm8960_snd_device); }