diff options
author | Bin Liu <b-liu@ti.com> | 2018-05-21 15:42:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-22 12:03:25 +0200 |
commit | 7ad76955c67b705550a7ba7f632b838486753d65 (patch) | |
tree | 59f89bcdfec5f93d34c63d40219ccedb50a2821d /drivers/usb/musb/musb_gadget.c | |
parent | usb: musb: dsps: remove duplicated get_musb_port_mode() (diff) | |
download | linux-7ad76955c67b705550a7ba7f632b838486753d65.tar.xz linux-7ad76955c67b705550a7ba7f632b838486753d65.zip |
usb: musb: remove duplicated port mode enum
include/linux/usb/musb.h already defines enum for musb port mode, so
remove the duplicate in musb_core.h and use the definition in musb.h.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 71c5835ea9cd..d082b0cbea93 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1823,7 +1823,7 @@ err: void musb_gadget_cleanup(struct musb *musb) { - if (musb->port_mode == MUSB_PORT_MODE_HOST) + if (musb->port_mode == MUSB_HOST) return; cancel_delayed_work_sync(&musb->gadget_work); |