Skip to content

Commit

Permalink
[ALSA] bt87x - fix detection of unknown card
Browse files Browse the repository at this point in the history
Modules: BT87x driver

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Jaroslav Kysela committed Jan 22, 2006
1 parent 128a46a commit 54c63cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/bt87x.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ static int __devinit snd_bt87x_detect_card(struct pci_dev *pci)
const struct pci_device_id *supported;

supported = pci_match_device(&driver, pci);
if (supported)
if (supported && supported->driver_data > 0)
return supported->driver_data;

for (i = 0; i < ARRAY_SIZE(blacklist); ++i)
Expand Down

0 comments on commit 54c63cf

Please sign in to comment.