diff options
author | Oliver Neukum <oneukum@suse.de> | 2013-11-18 07:23:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 13:31:20 -0500 |
commit | 8f3fd9df2630a162f524b7633397cca95eeea28a (patch) | |
tree | 180c00be4ab2b13c8166d3441449c8f9f7329f0c /drivers/usb/host/fusbh200-hcd.c | |
parent | 9bab24afba2eb663efbd7f681731f8f49d42c4e8 (diff) |
fusbh200: unconditionally compile debugging helpers
These helpers are used only during setup of a HCD.
A small overhead is no problem.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/fusbh200-hcd.c')
-rw-r--r-- | drivers/usb/host/fusbh200-hcd.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c index b9f9592e2679..17374a349e87 100644 --- a/drivers/usb/host/fusbh200-hcd.c +++ b/drivers/usb/host/fusbh200-hcd.c | |||
@@ -114,8 +114,6 @@ MODULE_PARM_DESC(hird, "host initiated resume duration, +1 for each 75us"); | |||
114 | static inline void fusbh200_vdbg(struct fusbh200_hcd *fusbh200, ...) {} | 114 | static inline void fusbh200_vdbg(struct fusbh200_hcd *fusbh200, ...) {} |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | #ifdef DEBUG | ||
118 | |||
119 | /* check the values in the HCSPARAMS register | 117 | /* check the values in the HCSPARAMS register |
120 | * (host controller _Structural_ parameters) | 118 | * (host controller _Structural_ parameters) |
121 | * see EHCI spec, Table 2-4 for each value | 119 | * see EHCI spec, Table 2-4 for each value |
@@ -130,13 +128,6 @@ static void dbg_hcs_params (struct fusbh200_hcd *fusbh200, char *label) | |||
130 | HCS_N_PORTS (params) | 128 | HCS_N_PORTS (params) |
131 | ); | 129 | ); |
132 | } | 130 | } |
133 | #else | ||
134 | |||
135 | static inline void dbg_hcs_params (struct fusbh200_hcd *fusbh200, char *label) {} | ||
136 | |||
137 | #endif | ||
138 | |||
139 | #ifdef DEBUG | ||
140 | 131 | ||
141 | /* check the values in the HCCPARAMS register | 132 | /* check the values in the HCCPARAMS register |
142 | * (host controller _Capability_ parameters) | 133 | * (host controller _Capability_ parameters) |
@@ -153,11 +144,6 @@ static void dbg_hcc_params (struct fusbh200_hcd *fusbh200, char *label) | |||
153 | HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024", | 144 | HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024", |
154 | HCC_CANPARK(params) ? " park" : ""); | 145 | HCC_CANPARK(params) ? " park" : ""); |
155 | } | 146 | } |
156 | #else | ||
157 | |||
158 | static inline void dbg_hcc_params (struct fusbh200_hcd *fusbh200, char *label) {} | ||
159 | |||
160 | #endif | ||
161 | 147 | ||
162 | static void __maybe_unused | 148 | static void __maybe_unused |
163 | dbg_qtd (const char *label, struct fusbh200_hcd *fusbh200, struct fusbh200_qtd *qtd) | 149 | dbg_qtd (const char *label, struct fusbh200_hcd *fusbh200, struct fusbh200_qtd *qtd) |