USB: drop HCD_LOCAL_MEM flag
With the addition of the local memory allocator, the HCD_LOCAL_MEM flag can be dropped and the checks against it replaced with a check for the localmem_pool ptr being initialized. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Tested-by: Fredrik Noring <noring@nocrew.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
7d99532955
commit
2d7a3dc3e2
@@ -581,7 +581,7 @@ static int uhci_start(struct usb_hcd *hcd)
|
||||
|
||||
hcd->uses_new_polling = 1;
|
||||
/* Accept arbitrarily long scatter-gather lists */
|
||||
if (!(hcd->driver->flags & HCD_LOCAL_MEM))
|
||||
if (!hcd->localmem_pool)
|
||||
hcd->self.sg_tablesize = ~0;
|
||||
|
||||
spin_lock_init(&uhci->lock);
|
||||
|
Reference in New Issue
Block a user