static __devexit int rt5621_i2c_remove(struct i2c_client *i2c) { audio_card_exit(); snd_soc_unregister_codec(&i2c->dev); kfree(i2c_get_clientdata(i2c)); return 0; }
static __devexit int rt5633_i2c_remove(struct i2c_client *i2c) { audio_card_exit(); #ifdef CONFIG_HDMI hdmi_codec_unregister(&hdmi_codec_driver); #endif snd_soc_unregister_codec(&i2c->dev); kfree(i2c_get_clientdata(i2c)); return 0; }