From: Bin Liu Date: Thu, 2 Feb 2017 03:30:15 +0000 (-0600) Subject: usb: musb: da8xx: remove redundant code X-Git-Tag: v4.14-rc1~1458^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41c4eb450fd3e1e17f51f77e58902e91e87b6e01;p=platform%2Fkernel%2Flinux-rpi.git usb: musb: da8xx: 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/da8xx.c b/drivers/usb/musb/da8xx.c index cd3d763..d5766eb 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c @@ -125,7 +125,6 @@ static void da8xx_musb_disable(struct musb *musb) musb_writel(reg_base, DA8XX_USB_INTR_MASK_CLEAR_REG, DA8XX_INTR_USB_MASK | DA8XX_INTR_TX_MASK | DA8XX_INTR_RX_MASK); - musb_writeb(musb->mregs, MUSB_DEVCTL, 0); musb_writel(reg_base, DA8XX_USB_END_OF_INTR_REG, 0); }