diff options
author | Bin Liu <b-liu@ti.com> | 2018-05-21 08:42:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-22 12:03:25 +0200 |
commit | d2852f2d3e6d6b9de3739f95b5cd9eab3157af37 (patch) | |
tree | 6f6605f146e98fe80189ddb987c144f3404fd49d /drivers/usb/musb/musb_core.c | |
parent | bcb8fd3a2fba82d5f53f9a598f9b5e14823dfb68 (diff) | |
download | linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.tar.gz linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.tar.bz2 linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.zip |
usb: musb: remove references to default_a of struct usb_otg
musb drivers do not use the otg fsm framework, so referencing to
otg->default_a doesn't have any effect, so remove the references.
But tusb6010 glue driver uses it locally to control the vbus power, so
keep the references in tusb6010 only.
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_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index a3a716197dc1..5cc64980058b 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2352,13 +2352,8 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) musb_writeb(musb->mregs, MUSB_ULPI_BUSCONTROL, busctl); } - if (musb->xceiv->otg->default_a) { - MUSB_HST_MODE(musb); - musb->xceiv->otg->state = OTG_STATE_A_IDLE; - } else { - MUSB_DEV_MODE(musb); - musb->xceiv->otg->state = OTG_STATE_B_IDLE; - } + MUSB_DEV_MODE(musb); + musb->xceiv->otg->state = OTG_STATE_B_IDLE; switch (musb->port_mode) { case MUSB_HOST: |