summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-03-25 15:56:08 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-26 19:07:53 +0100
commitd5c79f9cc897ef74ee7c376553572c67ed532662 (patch)
tree736b35d171e21b48dc01eac33bbdeb8381088132 /payloads/libpayload/drivers
parentcf4a3f4a9781dab1e08aa2d0c937d4bd196e02f6 (diff)
downloadcoreboot-d5c79f9cc897ef74ee7c376553572c67ed532662.tar.xz
libpayload: Fix unused function warning in EHCI stack
The function dump_qh() was added a while back but never used. Hide it behind USB_DEBUG so it doesn't cause warnings when not debugging the USB stack. Change-Id: Idb3c7bb214895ef82676d181836a578bf161e8e0 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2909 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martin.roth@se-eng.com>
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/usb/ehci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index 3e5de1dc03..5af99e0f53 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -27,6 +27,8 @@
* SUCH DAMAGE.
*/
+//#define USB_DEBUG
+
#include <libpayload.h>
#include "ehci.h"
#include "ehci_private.h"
@@ -67,6 +69,7 @@ static void dump_td(u32 addr)
usb_debug("+---------------------------------------------------+\n");
}
+#ifdef USB_DEBUG
static void dump_qh(ehci_qh_t *cur)
{
qtd_t *tmp_qtd = NULL;
@@ -112,6 +115,7 @@ static void dump_qh(ehci_qh_t *cur)
usb_debug("+---------------------------------------------------+\n");
}
}
+#endif
static void ehci_start (hci_t *controller)
{