diff options
Diffstat (limited to 'sound/pci/emu10k1/emu10k1x.c')
-rw-r--r-- | sound/pci/emu10k1/emu10k1x.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 47a651cb6e84..5c8978b2c4d9 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1612,24 +1612,11 @@ static DEFINE_PCI_DEVICE_TABLE(snd_emu10k1x_ids) = { | |||
1612 | MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids); | 1612 | MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids); |
1613 | 1613 | ||
1614 | // pci_driver definition | 1614 | // pci_driver definition |
1615 | static struct pci_driver driver = { | 1615 | static struct pci_driver emu10k1x_driver = { |
1616 | .name = KBUILD_MODNAME, | 1616 | .name = KBUILD_MODNAME, |
1617 | .id_table = snd_emu10k1x_ids, | 1617 | .id_table = snd_emu10k1x_ids, |
1618 | .probe = snd_emu10k1x_probe, | 1618 | .probe = snd_emu10k1x_probe, |
1619 | .remove = __devexit_p(snd_emu10k1x_remove), | 1619 | .remove = __devexit_p(snd_emu10k1x_remove), |
1620 | }; | 1620 | }; |
1621 | 1621 | ||
1622 | // initialization of the module | 1622 | module_pci_driver(emu10k1x_driver); |
1623 | static int __init alsa_card_emu10k1x_init(void) | ||
1624 | { | ||
1625 | return pci_register_driver(&driver); | ||
1626 | } | ||
1627 | |||
1628 | // clean up the module | ||
1629 | static void __exit alsa_card_emu10k1x_exit(void) | ||
1630 | { | ||
1631 | pci_unregister_driver(&driver); | ||
1632 | } | ||
1633 | |||
1634 | module_init(alsa_card_emu10k1x_init) | ||
1635 | module_exit(alsa_card_emu10k1x_exit) | ||