Merge branch 'for-linus' into for-next
[deliverable/linux.git] / sound / pci / hda / hda_codec.c
index ff97cf3e8bade9f68594340dc7a5beafd330539a..d71d101e92935721daeea42a26965262aaf997dd 100644 (file)
@@ -2368,6 +2368,7 @@ int snd_hda_codec_reset(struct hda_codec *codec)
        }
        if (codec->patch_ops.free)
                codec->patch_ops.free(codec);
+       memset(&codec->patch_ops, 0, sizeof(codec->patch_ops));
        snd_hda_jack_tbl_clear(codec);
        codec->proc_widget_hook = NULL;
        codec->spec = NULL;
@@ -2383,7 +2384,6 @@ int snd_hda_codec_reset(struct hda_codec *codec)
        codec->num_pcms = 0;
        codec->pcm_info = NULL;
        codec->preset = NULL;
-       memset(&codec->patch_ops, 0, sizeof(codec->patch_ops));
        codec->slave_dig_outs = NULL;
        codec->spdif_status_reset = 0;
        module_put(codec->owner);
This page took 0.031594 seconds and 5 git commands to generate.