diff options
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 74db40edb33..c819152de79 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c | |||
@@ -239,6 +239,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec) | |||
239 | struct hda_beep *beep = codec->beep; | 239 | struct hda_beep *beep = codec->beep; |
240 | if (beep) { | 240 | if (beep) { |
241 | cancel_work_sync(&beep->register_work); | 241 | cancel_work_sync(&beep->register_work); |
242 | cancel_delayed_work(&beep->unregister_work); | ||
242 | if (beep->enabled) | 243 | if (beep->enabled) |
243 | snd_hda_do_detach(beep); | 244 | snd_hda_do_detach(beep); |
244 | codec->beep = NULL; | 245 | codec->beep = NULL; |