Commit 8f3fd9df authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

fusbh200: unconditionally compile debugging helpers

These helpers are used only during setup of a HCD.
A small overhead is no problem.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9bab24af
...@@ -114,8 +114,6 @@ MODULE_PARM_DESC(hird, "host initiated resume duration, +1 for each 75us"); ...@@ -114,8 +114,6 @@ MODULE_PARM_DESC(hird, "host initiated resume duration, +1 for each 75us");
static inline void fusbh200_vdbg(struct fusbh200_hcd *fusbh200, ...) {} static inline void fusbh200_vdbg(struct fusbh200_hcd *fusbh200, ...) {}
#endif #endif
#ifdef DEBUG
/* check the values in the HCSPARAMS register /* check the values in the HCSPARAMS register
* (host controller _Structural_ parameters) * (host controller _Structural_ parameters)
* see EHCI spec, Table 2-4 for each value * 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,13 +128,6 @@ static void dbg_hcs_params (struct fusbh200_hcd *fusbh200, char *label)
HCS_N_PORTS (params) HCS_N_PORTS (params)
); );
} }
#else
static inline void dbg_hcs_params (struct fusbh200_hcd *fusbh200, char *label) {}
#endif
#ifdef DEBUG
/* check the values in the HCCPARAMS register /* check the values in the HCCPARAMS register
* (host controller _Capability_ parameters) * (host controller _Capability_ parameters)
...@@ -153,11 +144,6 @@ static void dbg_hcc_params (struct fusbh200_hcd *fusbh200, char *label) ...@@ -153,11 +144,6 @@ static void dbg_hcc_params (struct fusbh200_hcd *fusbh200, char *label)
HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024", HCC_PGM_FRAMELISTLEN(params) ? "256/512/1024" : "1024",
HCC_CANPARK(params) ? " park" : ""); HCC_CANPARK(params) ? " park" : "");
} }
#else
static inline void dbg_hcc_params (struct fusbh200_hcd *fusbh200, char *label) {}
#endif
static void __maybe_unused static void __maybe_unused
dbg_qtd (const char *label, struct fusbh200_hcd *fusbh200, struct fusbh200_qtd *qtd) dbg_qtd (const char *label, struct fusbh200_hcd *fusbh200, struct fusbh200_qtd *qtd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment