diff options
author | Bin Liu <b-liu@ti.com> | 2017-02-01 21:30:16 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-03 10:05:10 +0100 |
commit | be0e5c602cc520f7d8474192567a092643aec74a (patch) | |
tree | 4c1c0b28c1655cf9a20ae37d8baa1e6b53e116f5 /drivers | |
parent | 41c4eb450fd3e1e17f51f77e58902e91e87b6e01 (diff) | |
download | op-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')
-rw-r--r-- | drivers/usb/musb/am35x.c | 1 |
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); } |