Skip to contentSkip to conversation

ali5451: Add PCI_DEVICE and #defines in snd_ali_ids

PATCH New Jon Mason 1 participant 1 message Jan 12, 2006 Sound

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 ali5451: Add PCI_DEVICE and #defines in snd_ali_ids

This patch uses #defines for the Vendor ID and Device ID and uses the new PCI_DEVICE macro.

No hardware to test, but compiles and should work.

Thanks,
Jon

sound/pci/ali5451/ali5451.c +1 -1
diff -r 4a7597b41d25 sound/pci/ali5451/ali5451.c
@@ -279,7 +279,7 @@
 };
 
 static struct pci_device_id snd_ali_ids[] = {
-	{0x10b9, 0x5451, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
+	{PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0},
 	{0, }
 };
 MODULE_DEVICE_TABLE(pci, snd_ali_ids);