aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-11-02 08:59:37 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-11-02 08:59:37 +0000
commita26fdea499e13754016461d1bbdc597c9e6e526a (patch)
tree7065bc880d836c618b825d0b51c58390ee43d41c /target/linux/adm5120/files
parent06673531d5b4209a4a02b8809c6e23394ac34760 (diff)
downloadupstream-a26fdea499e13754016461d1bbdc597c9e6e526a.tar.gz
upstream-a26fdea499e13754016461d1bbdc597c9e6e526a.tar.bz2
upstream-a26fdea499e13754016461d1bbdc597c9e6e526a.zip
[adm5120] fix USB driver to compile even if USB_DEBUG is disabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9483 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r--target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c b/target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c
index bb83450eb5..7a0c73cc5f 100644
--- a/target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c
+++ b/target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c
@@ -9,8 +9,6 @@
/*-------------------------------------------------------------------------*/
-#ifdef DEBUG
-
static inline char *ed_typestring(int ed_type)
{
switch (ed_type) {
@@ -72,6 +70,8 @@ static inline char *td_togglestring(u32 info)
return "?TOGGLE";
}
+#ifdef DEBUG
+
/* debug| print the main components of an URB
* small: 0) header + data packets 1) just header
*/
@@ -377,6 +377,8 @@ static inline void admhc_dump_up(const struct admhcd *ahcd, const char *label,
const struct urb_priv *up) {}
static inline void admhc_dump_ed(const struct admhcd *ahcd, const char *label,
const struct ed *ed, int verbose) {}
+static inline void admhc_dump_td(const struct admhcd *ahcd, const char *label,
+ const struct td *td) {}
static inline void admhc_dump(struct admhcd *ahcd, int verbose) {}
#undef ADMHC_VERBOSE_DEBUG