From: Bin Liu Date: Thu, 2 Feb 2017 03:30:16 +0000 (-0600) Subject: usb: musb: am35x: remove redundant code X-Git-Tag: v4.11-rc1~119^2~34 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be0e5c602cc520f7d8474192567a092643aec74a;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 50ca8052bc8e..02fbb4fe3745 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); }