mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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 <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
41c4eb450f
commit
be0e5c602c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user