diff options
Diffstat (limited to 'sound/pci/hda/patch_intelhdmi.c')
-rw-r--r-- | sound/pci/hda/patch_intelhdmi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c index 5393f84f6755..58aaf06589a8 100644 --- a/sound/pci/hda/patch_intelhdmi.c +++ b/sound/pci/hda/patch_intelhdmi.c | |||
@@ -637,7 +637,10 @@ static int intel_hdmi_init(struct hda_codec *codec) | |||
637 | 637 | ||
638 | static void intel_hdmi_free(struct hda_codec *codec) | 638 | static void intel_hdmi_free(struct hda_codec *codec) |
639 | { | 639 | { |
640 | kfree(codec->spec); | 640 | struct intel_hdmi_spec *spec = codec->spec; |
641 | |||
642 | snd_hda_eld_proc_free(codec, &spec->sink_eld); | ||
643 | kfree(spec); | ||
641 | } | 644 | } |
642 | 645 | ||
643 | static struct hda_codec_ops intel_hdmi_patch_ops = { | 646 | static struct hda_codec_ops intel_hdmi_patch_ops = { |