aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/bt87x.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/bt87x.c')
-rw-r--r--sound/pci/bt87x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c
index 89a7ffe5e7d7..c5557eaf3e2e 100644
--- a/sound/pci/bt87x.c
+++ b/sound/pci/bt87x.c
@@ -798,13 +798,15 @@ static struct {
798 {0x270f, 0xfc00}, /* Chaintech Digitop DST-1000 DVB-S */ 798 {0x270f, 0xfc00}, /* Chaintech Digitop DST-1000 DVB-S */
799}; 799};
800 800
801static struct pci_driver driver;
802
801/* return the rate of the card, or a negative value if it's blacklisted */ 803/* return the rate of the card, or a negative value if it's blacklisted */
802static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) 804static int __devinit snd_bt87x_detect_card(struct pci_dev *pci)
803{ 805{
804 int i; 806 int i;
805 const struct pci_device_id *supported; 807 const struct pci_device_id *supported;
806 808
807 supported = pci_match_device(snd_bt87x_ids, pci); 809 supported = pci_match_device(&driver, pci);
808 if (supported) 810 if (supported)
809 return supported->driver_data; 811 return supported->driver_data;
810 812
@@ -918,7 +920,7 @@ static int __init alsa_card_bt87x_init(void)
918{ 920{
919 if (load_all) 921 if (load_all)
920 driver.id_table = snd_bt87x_default_ids; 922 driver.id_table = snd_bt87x_default_ids;
921 return pci_module_init(&driver); 923 return pci_register_driver(&driver);
922} 924}
923 925
924static void __exit alsa_card_bt87x_exit(void) 926static void __exit alsa_card_bt87x_exit(void)