]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - sound/drivers/opl3/opl3_oss.c
[PATCH] alsa: fix bogus snd_device_free() in opl3-oss.c
[net-next-2.6.git] / sound / drivers / opl3 / opl3_oss.c
index 31f1f2e25aa076012d2b799d9619e1695f18887a..0345ae6476812803e1b539d75ffc54835b576cc8 100644 (file)
@@ -146,7 +146,7 @@ void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name)
 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3)
 {
        if (opl3->oss_seq_dev) {
-               snd_device_free(opl3->card, opl3->oss_seq_dev);
+               /* The instance should have been released in prior */
                opl3->oss_seq_dev = NULL;
        }
 }