===== drivers/usb/host/ohci.h 1.18 vs edited =====
--- 2.6.2-mm1/drivers/usb/host/ohci-sa1111.c    Sun Aug 24 07:45:05 2003
+++ edited/drivers/usb/host/ohci-sa1111.c       Wed Feb  4 10:40:43 2004
@@ -167,7 +167,7 @@
        hcd->description = driver->description;
        hcd->irq = dev->irq[1];
        hcd->regs = dev->mapbase;
-       hcd->pdev = SA1111_FAKE_PCIDEV;
+       hcd->dev = &dev->dev;
        hcd->self.controller = &dev->dev;
        hcd->controller = hcd->self.controller;
 
@@ -272,9 +270,9 @@
        struct ohci_hcd *ohci = hcd_to_ohci (hcd);
        int             ret;
 
-       if (hcd->pdev) {
-               ohci->hcca = pci_alloc_consistent (hcd->pdev,
-                               sizeof *ohci->hcca, &ohci->hcca_dma);
+       if (hcd->dev) {
+               ohci->hcca = dma_alloc_coherent (hcd->dev,
+                               sizeof *ohci->hcca, &ohci->hcca_dma, 0);
                if (!ohci->hcca)
                        return -ENOMEM;
        }
-- 
Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to