Skip to content

Commit

Permalink
ALSA: asihpi - Revert module_pci_driver conversion for asihpi.c
Browse files Browse the repository at this point in the history
It contains non-standard call.

Reported-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 26, 2012
1 parent 07a5e9d commit 1a442cc
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions sound/pci/asihpi/asihpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2963,7 +2963,7 @@ static DEFINE_PCI_DEVICE_TABLE(asihpi_pci_tbl) = {
};
MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl);

static struct pci_driver asihpi_driver = {
static struct pci_driver driver = {
.name = KBUILD_MODNAME,
.id_table = asihpi_pci_tbl,
.probe = snd_asihpi_probe,
Expand All @@ -2974,4 +2974,19 @@ static struct pci_driver asihpi_driver = {
#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)

0 comments on commit 1a442cc

Please sign in to comment.