diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-02-06 16:48:10 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-06 16:48:10 +0100 |
commit | c44765b8c8bfc883c9868ab7aef37d27b5b14be8 (patch) | |
tree | 116214b6b250829805e45c548ed983d575da8e4e /sound/pci/hda/hda_beep.c | |
parent | c8dcdf829ca1827a802eae841dd04de8c9d6653f (diff) | |
download | op-kernel-dev-c44765b8c8bfc883c9868ab7aef37d27b5b14be8.zip op-kernel-dev-c44765b8c8bfc883c9868ab7aef37d27b5b14be8.tar.gz |
ALSA: hda - Clear codec->beep at release
Clear codec->beep field in snd_hda_detach_beep_device() to be sure.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_beep.c')
-rw-r--r-- | sound/pci/hda/hda_beep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index 960fd79..4de5bac 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c @@ -138,6 +138,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec) input_unregister_device(beep->dev); kfree(beep); + codec->beep = NULL; } } EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device); |