提交 54c63cfc 编写于 作者: J Jaroslav Kysela

[ALSA] bt87x - fix detection of unknown card

Modules: BT87x driver
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 128a46a5
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册