USB: make hcd.h public (drivers dependency)
[deliverable/linux.git] / drivers / usb / host / isp1362-hcd.c
index 42971657fde2953f2d7798e5b45d4d14796fb16d..acc157da72757d89dc7fd76e394658d1a94c94ae 100644 (file)
@@ -77,6 +77,7 @@
 #include <linux/interrupt.h>
 #include <linux/usb.h>
 #include <linux/usb/isp1362.h>
+#include <linux/usb/hcd.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/io.h>
@@ -95,7 +96,6 @@ module_param(dbg_level, int, 0);
 #define        STUB_DEBUG_FILE
 #endif
 
-#include "../core/hcd.h"
 #include "../core/usb.h"
 #include "isp1362.h"
 
@@ -1257,7 +1257,7 @@ static int isp1362_urb_enqueue(struct usb_hcd *hcd,
 
        /* avoid all allocations within spinlocks: request or endpoint */
        if (!hep->hcpriv) {
-               ep = kcalloc(1, sizeof *ep, mem_flags);
+               ep = kzalloc(sizeof *ep, mem_flags);
                if (!ep)
                        return -ENOMEM;
        }
@@ -2719,24 +2719,11 @@ static int __init isp1362_probe(struct platform_device *pdev)
        }
        irq = irq_res->start;
 
-#ifdef CONFIG_USB_HCD_DMA
-       if (pdev->dev.dma_mask) {
-               struct resource *dma_res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
-
-               if (!dma_res) {
-                       retval = -ENODEV;
-                       goto err1;
-               }
-               isp1362_hcd->data_dma = dma_res->start;
-               isp1362_hcd->max_dma_size = resource_len(dma_res);
-       }
-#else
        if (pdev->dev.dma_mask) {
                DBG(1, "won't do DMA");
                retval = -ENODEV;
                goto err1;
        }
-#endif
 
        if (!request_mem_region(addr->start, resource_len(addr), hcd_name)) {
                retval = -EBUSY;
This page took 0.036156 seconds and 5 git commands to generate.