From: Daniel Ritz Date: Mon, 12 Sep 2005 09:47:04 +0000 (+0200) Subject: [ALSA] snd_opl3sa2: add missing pnp_unregister_driver() calls X-Git-Tag: v2.6.14-rc4~25^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=06f619ccb3319759c2acf91c7ca02b6b1d9ed343;p=linux-2.6-omap-h63xx.git [ALSA] snd_opl3sa2: add missing pnp_unregister_driver() calls OPL3SA2 driver Signed-off-by: Daniel Ritz Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c index e2d2babcd20..4ba268f251e 100644 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c @@ -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]);