USB: remove obsolete config in kernel source (USB_HCD_DMA)
authorChristoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Thu, 21 Jan 2010 13:58:47 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:37 +0000 (14:54 -0800)
The configuration Option USB_HCD_DMA is not reachable in KConfig so
this piece of Code is effectively dead and useless. Remove it to avoid
confusion.

Signed-off-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1362-hcd.c

index 5596fc1a75aafcde938dee2441e147507013fce2..217fb5170200d3a66a9680c2d6d9a8ca81f3a1d1 100644 (file)
@@ -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;