]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: musb: am35x: remove redundant code
authorBin Liu <b-liu@ti.com>
Thu, 2 Feb 2017 03:30:16 +0000 (21:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:05:10 +0000 (10:05 +0100)
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>
drivers/usb/musb/am35x.c

index 50ca8052bc8e8718152cb2005d00df130062274d..02fbb4fe3745def55925437bfa37872afa58dba7 100644 (file)
@@ -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);
 }