]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: musb: dsps: remove redundant code
authorBin Liu <b-liu@ti.com>
Thu, 2 Feb 2017 03:30:14 +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/musb_dsps.c

index 9f125e179acd444ca43c73a1a5d263b8e5c8893d..ceb646be20d924a00b0a594936dbdb3256d67671 100644 (file)
@@ -186,7 +186,6 @@ static void dsps_musb_disable(struct musb *musb)
        musb_writel(reg_base, wrp->epintr_clear,
                         wrp->txep_bitmap | wrp->rxep_bitmap);
        del_timer_sync(&glue->timer);
-       musb_writeb(musb->mregs, MUSB_DEVCTL, 0);
 }
 
 /* Caller must take musb->lock */