summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ba13e2)
raw | patch | inline | side by side (parent: 0ba13e2)
author | Bin Liu <b-liu@ti.com> | |
Thu, 15 Jan 2015 21:00:04 +0000 (15:00 -0600) | ||
committer | Sekhar Nori <nsekhar@ti.com> | |
Wed, 4 Feb 2015 10:56:36 +0000 (16:26 +0530) |
usb_drd_stop_hcd() should check for DRD_HOST_REGISTERED, not
DRD_HOST_ACTIVE, as other usb_drd_st{art,op}_*() functions do.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
DRD_HOST_ACTIVE, as other usb_drd_st{art,op}_*() functions do.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/drd-lib.c | patch | blob | history |
diff --git a/drivers/usb/drd-lib.c b/drivers/usb/drd-lib.c
index f6104f24d281387da403254f69a42d400ee34e3f..ac16d6a12acd51f4188ab9a510214165c421fe9f 100644 (file)
--- a/drivers/usb/drd-lib.c
+++ b/drivers/usb/drd-lib.c
if (!drd)
return -ENODEV;
- if (WARN_ON(!(drd->state & DRD_HOST_ACTIVE)))
+ if (WARN_ON(!(drd->state & DRD_HOST_REGISTERED)))
return -EINVAL;
setup = drd->host->host_setup;