mirror of https://gitee.com/openkylin/linux.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 <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2e3818ac8
commit
41c4eb450f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue