static void intel_hdmi_free(struct hda_codec *codec) { struct hdmi_spec *spec = codec->spec; int i; for (i = 0; i < spec->num_pins; i++) snd_hda_eld_proc_free(codec, &spec->sink_eld[i]); kfree(spec); }
static void nvhdmi_free(struct hda_codec *codec) { struct hdmi_spec *spec = codec->spec; int i; if ((spec->codec_type == HDA_CODEC_NVIDIA_MCP89) || (spec->codec_type == HDA_CODEC_NVIDIA_GT21X)) { for (i = 0; i < spec->num_pins; i++) snd_hda_eld_proc_free(codec, &spec->sink_eld[i]); } kfree(spec); }