* [PATCH] quirks: switch quirks code offender to use pci_get API
@ 2006-10-03 23:43 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2006-10-03 23:43 UTC (permalink / raw)
To: akpm, linux-kernel
Signed-off-by: Alan Cox <alan@redhat.com>
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-mm3/drivers/pci/quirks.c linux-2.6.18-mm3/drivers/pci/quirks.c
--- linux.vanilla-2.6.18-mm3/drivers/pci/quirks.c 2006-10-03 19:23:10.043227664 +0100
+++ linux-2.6.18-mm3/drivers/pci/quirks.c 2006-10-03 23:31:40.653470360 +0100
@@ -1840,7 +1787,7 @@
/* check HT MSI cap on this chipset and the root one.
* a single one having MSI is enough to be sure that MSI are supported.
*/
- pdev = pci_find_slot(dev->bus->number, 0);
+ pdev = pci_get_slot(dev->bus, 0);
if (dev->subordinate && !msi_ht_cap_enabled(dev)
&& !msi_ht_cap_enabled(pdev)) {
printk(KERN_WARNING "PCI: MSI quirk detected. "
@@ -1848,6 +1795,7 @@
pci_name(dev));
dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MSI;
}
+ pci_dev_put(pdev);
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE,
quirk_nvidia_ck804_msi_ht_cap);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-03 23:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-03 23:43 [PATCH] quirks: switch quirks code offender to use pci_get API Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®