summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/am35x.c
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2017-02-01 21:30:16 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-03 10:05:10 +0100
commitbe0e5c602cc520f7d8474192567a092643aec74a (patch)
tree4c1c0b28c1655cf9a20ae37d8baa1e6b53e116f5 /drivers/usb/musb/am35x.c
parent41c4eb450fd3e1e17f51f77e58902e91e87b6e01 (diff)
downloadop-kernel-dev-be0e5c602cc520f7d8474192567a092643aec74a.zip
op-kernel-dev-be0e5c602cc520f7d8474192567a092643aec74a.tar.gz
usb: musb: am35x: remove redundant code
The session is cleared in the core whenever musb_platform_disable() is called, so clearing it in the glue driver *_musb_disable() is redundant. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/am35x.c')
-rw-r--r--drivers/usb/musb/am35x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index 50ca805..02fbb4f 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -121,7 +121,6 @@ static void am35x_musb_disable(struct musb *musb)
musb_writel(reg_base, CORE_INTR_MASK_CLEAR_REG, AM35X_INTR_USB_MASK);
musb_writel(reg_base, EP_INTR_MASK_CLEAR_REG,
AM35X_TX_INTR_MASK | AM35X_RX_INTR_MASK);
- musb_writeb(musb->mregs, MUSB_DEVCTL, 0);
musb_writel(reg_base, USB_END_OF_INTR_REG, 0);
}
OpenPOWER on IntegriCloud