mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
USB: EHCI: move logging macros to ehci.h
In preparation for splitting the ehci-hcd driver into a core library and separate platform-specific driver modules, this patch (as1616) moves the console logging macros from ehci-dbg.c to ehci.h, where they will be available to the platform drivers. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6273f1810f
commit
d6064aca82
2 changed files with 15 additions and 15 deletions
|
@ -18,21 +18,6 @@
|
|||
|
||||
/* this file is part of ehci-hcd.c */
|
||||
|
||||
#define ehci_dbg(ehci, fmt, args...) \
|
||||
dev_dbg (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
|
||||
#define ehci_err(ehci, fmt, args...) \
|
||||
dev_err (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
|
||||
#define ehci_info(ehci, fmt, args...) \
|
||||
dev_info (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
|
||||
#define ehci_warn(ehci, fmt, args...) \
|
||||
dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
# define ehci_vdbg ehci_dbg
|
||||
#else
|
||||
static inline void ehci_vdbg(struct ehci_hcd *ehci, ...) {}
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
/* check the values in the HCSPARAMS register
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue