.. | .. |
---|
581 | 581 | |
---|
582 | 582 | hcd->uses_new_polling = 1; |
---|
583 | 583 | /* Accept arbitrarily long scatter-gather lists */ |
---|
584 | | - if (!(hcd->driver->flags & HCD_LOCAL_MEM)) |
---|
| 584 | + if (!hcd->localmem_pool) |
---|
585 | 585 | hcd->self.sg_tablesize = ~0; |
---|
586 | 586 | |
---|
587 | 587 | spin_lock_init(&uhci->lock); |
---|
.. | .. |
---|
596 | 596 | &uhci_debug_operations); |
---|
597 | 597 | #endif |
---|
598 | 598 | |
---|
599 | | - uhci->frame = dma_zalloc_coherent(uhci_dev(uhci), |
---|
600 | | - UHCI_NUMFRAMES * sizeof(*uhci->frame), |
---|
601 | | - &uhci->frame_dma_handle, GFP_KERNEL); |
---|
| 599 | + uhci->frame = dma_alloc_coherent(uhci_dev(uhci), |
---|
| 600 | + UHCI_NUMFRAMES * sizeof(*uhci->frame), |
---|
| 601 | + &uhci->frame_dma_handle, GFP_KERNEL); |
---|
602 | 602 | if (!uhci->frame) { |
---|
603 | 603 | dev_err(uhci_dev(uhci), |
---|
604 | 604 | "unable to allocate consistent memory for frame list\n"); |
---|