===== drivers/usb/host/ohci-mem.c 1.17 vs edited =====
--- 2.6.2-mm1/drivers/usb/host/ohci-hcd.c       Mon Jan 26 02:48:45 2004
+++ edited/drivers/usb/host/ohci-hcd.c  Wed Feb  4 11:39:25 2004
@@ -17,6 +17,7 @@
  *
  * History:
  * 
+ * 2004/02/04 use generic dma_* functions instead of pci_* ([EMAIL PROTECTED])
  * 2003/02/24 show registers in sysfs (Kevin Brosius)
  *
  * 2002/09/03 get rid of ed hashtables, rework periodic scheduling and
@@ -95,6 +96,8 @@
 #include <linux/interrupt.h>  /* for in_interrupt () */
 #include <linux/usb.h>
 #include "../core/hcd.h"
+#include <linux/dma-mapping.h> 
+#include <linux/dmapool.h>    /* needed by ohci-mem.c when no PCI */
 
 #include <asm/io.h>
 #include <asm/irq.h>
@@ -623,7 +626,7 @@
        remove_debug_files (ohci);
        ohci_mem_cleanup (ohci);
        if (ohci->hcca) {
-               pci_free_consistent (ohci->hcd.pdev, sizeof *ohci->hcca,
+               dma_free_coherent (ohci->hcd.dev, sizeof *ohci->hcca,
                                        ohci->hcca, ohci->hcca_dma);
                ohci->hcca = NULL;
                ohci->hcca_dma = 0;
-- 
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