]> err.no Git - linux-2.6/commitdiff
[ALSA] snd_opl3sa2: add missing pnp_unregister_driver() calls
authorDaniel Ritz <daniel.ritz@gmx.ch>
Mon, 12 Sep 2005 09:47:04 +0000 (11:47 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 7 Oct 2005 12:45:17 +0000 (14:45 +0200)
OPL3SA2 driver

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/opl3sa2.c

index e2d2babcd20b47421ce034afcbda41837cb66a89..4ba268f251e320a456d64e776b4fcca457a330c8 100644 (file)
@@ -914,6 +914,7 @@ static int __init alsa_card_opl3sa2_init(void)
 #endif
 #ifdef CONFIG_PNP
                pnp_unregister_card_driver(&opl3sa2_pnpc_driver);
+               pnp_unregister_driver(&opl3sa2_pnp_driver);
 #endif
                return -ENODEV;
        }
@@ -927,6 +928,7 @@ static void __exit alsa_card_opl3sa2_exit(void)
 #ifdef CONFIG_PNP
        /* PnP cards first */
        pnp_unregister_card_driver(&opl3sa2_pnpc_driver);
+       pnp_unregister_driver(&opl3sa2_pnp_driver);
 #endif
        for (idx = 0; idx < SNDRV_CARDS; idx++)
                snd_card_free(snd_opl3sa2_legacy[idx]);