From: Bin Liu Date: Thu, 2 Feb 2017 03:30:14 +0000 (-0600) Subject: usb: musb: dsps: remove redundant code X-Git-Tag: v4.11-rc1~119^2~36 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2e3818ac89d9168c3051b9aaa23b78050df9b6d;p=karo-tx-linux.git usb: musb: dsps: 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 9f125e179acd..ceb646be20d9 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -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 */