On Tue, 2005-07-26 at 13:45 -0500, Larry Ewing wrote:
> I stuck my pvr 250 in my dual opteron box and the ivtv driver was unable
> to properly initialize.  A little digging and a small change fixed
> things for me.  I have no idea if it is correct but I thought I'd pass
> it along, the patch is against 0.3.6r but the change appears to still be
> needed in 0.3.7a.
> 

Sigh, after all these years you'd think I could get a diff right,
clearly the patch I sent before was reversed, here is the correct patch.

--Larry
--- ivtv-0.3.6r/driver/ivtv-driver.c	2005-06-24 09:11:58.000000000 -0500
+++ ivtv-0.3.6r-larry/driver/ivtv-driver.c	2005-06-27 00:40:57.000000000 -0500
@@ -853,7 +853,7 @@ static int ivtv_setup_pci(struct ivtv *i
 		   "     irq: %d, latency: %d, memory: 0x%lx\n",
 		   itv->dev->irq, pci_latency, (unsigned long)itv->base_addr);
 
-	pci_bus = pci_find_slot(0, PCI_DEVFN(0, 0));
+	pci_bus = pci_find_slot(dev->bus->number, dev->devfn);
 
 	if (pci_bus == NULL) {
 		IVTV_KERN_ERR("Error finding PCI Slot\n");

Reply via email to