diff options
author | Jaroslav Kysela <perex@suse.cz> | 2006-01-12 01:56:40 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-22 10:24:07 -0500 |
commit | 54c63cfc153c6909a5d5dbe6072e8704b091f30e (patch) | |
tree | cb217353ebfe7c2978387744b794e0cda83685d0 /sound/pci | |
parent | 128a46a55da81e563116e99e08e295fda41a145b (diff) |
[ALSA] bt87x - fix detection of unknown card
Modules: BT87x driver
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/bt87x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index aaaa2e0d45c2..c840a4c08e98 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -810,7 +810,7 @@ static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) | |||
810 | const struct pci_device_id *supported; | 810 | const struct pci_device_id *supported; |
811 | 811 | ||
812 | supported = pci_match_device(&driver, pci); | 812 | supported = pci_match_device(&driver, pci); |
813 | if (supported) | 813 | if (supported && supported->driver_data > 0) |
814 | return supported->driver_data; | 814 | return supported->driver_data; |
815 | 815 | ||
816 | for (i = 0; i < ARRAY_SIZE(blacklist); ++i) | 816 | for (i = 0; i < ARRAY_SIZE(blacklist); ++i) |