PCI_PRODUCT works on pa_id, not pa_device

This commit is contained in:
jmcneill 2008-07-19 17:45:53 +00:00
parent 61ffbe1fec
commit e3f4f88866
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ drm_attach_common(struct drm_device *dev, struct pci_attach_args *pa, drm_pci_id
dev->pci_slot = pa->pa_device;
dev->pci_func = pa->pa_function;
dev->pci_vendor = PCI_VENDOR(pa->pa_id);
dev->pci_device = PCI_PRODUCT(pa->pa_device);
dev->pci_device = PCI_PRODUCT(pa->pa_id);
id_entry = drm_find_description(PCI_VENDOR(pa->pa_id),
PCI_PRODUCT(pa->pa_id), idlist);