提交 1a442cc3 编写于 作者: T Takashi Iwai

ALSA: asihpi - Revert module_pci_driver conversion for asihpi.c

It contains non-standard call.
Reported-by: NEliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 07a5e9d4
...@@ -2963,7 +2963,7 @@ static DEFINE_PCI_DEVICE_TABLE(asihpi_pci_tbl) = { ...@@ -2963,7 +2963,7 @@ static DEFINE_PCI_DEVICE_TABLE(asihpi_pci_tbl) = {
}; };
MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl); MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl);
static struct pci_driver asihpi_driver = { static struct pci_driver driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.id_table = asihpi_pci_tbl, .id_table = asihpi_pci_tbl,
.probe = snd_asihpi_probe, .probe = snd_asihpi_probe,
...@@ -2974,4 +2974,19 @@ static struct pci_driver asihpi_driver = { ...@@ -2974,4 +2974,19 @@ static struct pci_driver asihpi_driver = {
#endif #endif
}; };
module_pci_driver(asihpi_driver); static int __init snd_asihpi_init(void)
{
asihpi_init();
return pci_register_driver(&driver);
}
static void __exit snd_asihpi_exit(void)
{
pci_unregister_driver(&driver);
asihpi_exit();
}
module_init(snd_asihpi_init)
module_exit(snd_asihpi_exit)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册