]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/hda/hda_beep.c
ALSA: hda - use input_free_device()
[linux-2.6-omap-h63xx.git] / sound / pci / hda / hda_beep.c
index 5a764c4813919a52cf6aa3e71cc6420573a88ea1..9b77b3e0fa98dadceaba640c4e185a2e496a0cc9 100644 (file)
@@ -103,7 +103,7 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
 
        err = input_register_device(input_dev);
        if (err < 0) {
-               kfree(input_dev);
+               input_free_device(input_dev);
                kfree(beep);
                return err;
        }