Remove old unused delay_port_power_off
Signed-off-by: Tony Lindgren <tony@atomide.com>
struct usb_gadget_driver *gadget_driver; /* its driver */
#endif
-#ifdef CONFIG_USB_MUSB_OTG
- /* FIXME this can't be OTG-specific ... ? */
- u8 delay_port_power_off;
-#endif
-
#ifdef MUSB_CONFIG_PROC_FS
struct proc_dir_entry *proc_entry;
#endif
if (is_peripheral_active(musb)) {
// REVISIT HNP; just force disconnect
}
- musb->delay_port_power_off = FALSE;
musb_writew(mbase, MUSB_INTRTXE, musb->epmask);
musb_writew(mbase, MUSB_INTRRXE, musb->epmask & 0xfffe);
musb_writeb(mbase, MUSB_INTRUSBE, 0xf7);
musb->port1_status &= ~USB_PORT_STAT_RESET;
return;
}
-
- /* REVISIT this looks wrong for HNP */
- u8 devctl = musb_readb(mbase, MUSB_DEVCTL);
-
- if (musb->delay_port_power_off || !(devctl & MUSB_DEVCTL_HM)) {
- return;
- }
#endif
if (!is_host_active(musb))