Skip to contentSkip to conversation

MTX1 : fix wrong ifdef leading to USB switch not powered

PATCH In review Florian Fainelli 1 participant 1 message Sep 25, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 MTX1 : fix wrong ifdef leading to USB switch not powered

This patch fixes a wrong ifdef in the board setup code, leading to the GPIO pin not being pulled high, and thus the USB switch not being powered at all.

arch/mips/au1000/mtx-1/board_setup.c +1 -1
index 7bc5af8..1a2a5ca 100644
@@ -54,7 +54,7 @@ void board_reset (void)
 
 void __init board_setup(void)
 {
-#ifdef CONFIG_USB_OHCI
+#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) 
 	// enable USB power switch
 	au_writel( au_readl(GPIO2_DIR) | 0x10, GPIO2_DIR );
 	au_writel( 0x100000, GPIO2_OUTPUT );