From: Jaroslav Kysela Date: Thu, 12 Jan 2006 06:56:40 +0000 (+0100) Subject: [ALSA] bt87x - fix detection of unknown card X-Git-Tag: v2.6.16-rc2~1^2~7^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=54c63cfc153c6909a5d5dbe6072e8704b091f30e;p=linux-2.6-omap-h63xx.git [ALSA] bt87x - fix detection of unknown card Modules: BT87x driver Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index aaaa2e0d45c..c840a4c08e9 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) 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)