All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with
@ 2004-10-20 18:53 ` Hanna Linder
  0 siblings, 0 replies; 6+ messages in thread
From: Hanna Linder @ 2004-10-20 18:53 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: Hanna Linder, greg, davej

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]


As pci_find_device is going away soon I have converted this file to use
pci_get_device instead. I have compile tested it. If anyone has this hardware
and could test it that would be great.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
---

diff -Nrup linux-2.6.9cln/drivers/char/agp/intel-mch-agp.c linux-2.6.9patch3/drivers/char/agp/intel-mch-agp.c
--- linux-2.6.9cln/drivers/char/agp/intel-mch-agp.c	2004-10-18 16:35:52.000000000 -0700
+++ linux-2.6.9patch3/drivers/char/agp/intel-mch-agp.c	2004-10-18 17:23:22.000000000 -0700
@@ -470,9 +470,9 @@ static int find_i830(u16 device)
 {
 	struct pci_dev *i830_dev;
 
-	i830_dev = pci_find_device(PCI_VENDOR_ID_INTEL, device, NULL);
+	i830_dev = pci_get_device(PCI_VENDOR_ID_INTEL, device, NULL);
 	if (i830_dev && PCI_FUNC(i830_dev->devfn) != 0) {
-		i830_dev = pci_find_device(PCI_VENDOR_ID_INTEL,
+		i830_dev = pci_get_device(PCI_VENDOR_ID_INTEL,
 				device, i830_dev);
 	}
 
@@ -565,6 +565,7 @@ static void __devexit agp_intelmch_remov
 {
 	struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
+	pci_dev_put(pdev);
 	agp_remove_bridge(bridge);
 	agp_put_bridge(bridge);
 }


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-20 22:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 18:53 [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with Hanna Linder
2004-10-20 18:53 ` [RFT 2.6] intel-mch-agp.c: replace pci_find_device with pci_get_device Hanna Linder
2004-10-20 22:04 ` [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with Matthew Wilcox
2004-10-20 22:04   ` [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with pci_get_device Matthew Wilcox
2004-10-20 22:06   ` [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with Christoph Hellwig
2004-10-20 22:06     ` [KJ] [RFT 2.6] intel-mch-agp.c: replace pci_find_device with pci_get_device Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.