From 8bed6ba45545b8f5e1356cb6ee0c96a52df773e9 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Tue, 27 Dec 2011 17:17:49 +0200 Subject: [PATCH] don't init USB unconditionally Since USB init takes time, and only few users will use this feature, start it only when selected from menu or when the custom 'usbinit' command is issued. --- common/stdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/stdio.c b/common/stdio.c index 1bf9ba08297..8a7c87dba06 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -231,8 +231,11 @@ int stdio_init (void) serial_stdio_init (); #endif #ifdef CONFIG_USB_TTY +/* HACK, we only want it to start when selected from menu */ +#ifndef CONFIG_OMAP3_PANDORA drv_usbtty_init (); #endif +#endif #ifdef CONFIG_NETCONSOLE drv_nc_init (); #endif -- 2.39.5