提交 06f619cc 编写于 作者: D Daniel Ritz 提交者: Jaroslav Kysela

[ALSA] snd_opl3sa2: add missing pnp_unregister_driver() calls

OPL3SA2 driver
Signed-off-by: NDaniel Ritz <daniel.ritz@gmx.ch>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 82984114
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册