diff options
author | Laurentiu Tudor <laurentiu.tudor@nxp.com> | 2019-05-29 12:28:43 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-06-03 16:00:08 +0200 |
commit | 2d7a3dc3e24f43504b1f25eae8195e600f4cce8b (patch) | |
tree | 64a85b7873d82779000de66a071ae50157a75d2d /drivers/usb/host/ehci-hcd.c | |
parent | usb: host: ohci-tmio: init genalloc for local memory (diff) | |
download | linux-2d7a3dc3e24f43504b1f25eae8195e600f4cce8b.tar.xz linux-2d7a3dc3e24f43504b1f25eae8195e600f4cce8b.zip |
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>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index cdafa97f632d..9da7e22848c9 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -559,7 +559,7 @@ static int ehci_init(struct usb_hcd *hcd) ehci->command = temp; /* Accept arbitrarily long scatter-gather lists */ - if (!(hcd->driver->flags & HCD_LOCAL_MEM)) + if (!hcd->localmem_pool) hcd->self.sg_tablesize = ~0; /* Prepare for unlinking active QHs */ |