mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
ALSA: hda: beep - add missing cancel_delayed_work
The unregister work should be also canceled in snd_hda_detach_beep_device() function. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
13dab0808b
commit
5f81669750
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)
|
|||
struct hda_beep *beep = codec->beep;
|
||||
if (beep) {
|
||||
cancel_work_sync(&beep->register_work);
|
||||
cancel_delayed_work(&beep->unregister_work);
|
||||
if (beep->enabled)
|
||||
snd_hda_do_detach(beep);
|
||||
codec->beep = NULL;
|
||||
|
|
Loading…
Reference in a new issue