From 3294b0af17d7150b4126b1d04d4d1925021fceef Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 17 Aug 2007 06:02:18 -0700 Subject: [PATCH] musb_hdrc: Remove old unused delay_port_power_off Remove old unused delay_port_power_off Signed-off-by: Tony Lindgren --- drivers/usb/musb/musbdefs.h | 5 ----- drivers/usb/musb/plat_uds.c | 1 - drivers/usb/musb/virthub.c | 7 ------- 3 files changed, 13 deletions(-) diff --git a/drivers/usb/musb/musbdefs.h b/drivers/usb/musb/musbdefs.h index 27b5957a4b4..ccc8d24bff3 100644 --- a/drivers/usb/musb/musbdefs.h +++ b/drivers/usb/musb/musbdefs.h @@ -450,11 +450,6 @@ struct musb { 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 diff --git a/drivers/usb/musb/plat_uds.c b/drivers/usb/musb/plat_uds.c index c6ca9ea9c84..48f4334a7c4 100644 --- a/drivers/usb/musb/plat_uds.c +++ b/drivers/usb/musb/plat_uds.c @@ -557,7 +557,6 @@ static irqreturn_t musb_stage0_irq(struct musb * musb, u8 int_usb, 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); diff --git a/drivers/usb/musb/virthub.c b/drivers/usb/musb/virthub.c index 757da5e1da3..d9f3c28f33b 100644 --- a/drivers/usb/musb/virthub.c +++ b/drivers/usb/musb/virthub.c @@ -121,13 +121,6 @@ static void musb_port_reset(struct musb *musb, u8 bReset) 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)) -- 2.41.1