Skip to content

Commit

Permalink
usb: ehci: remove old stub_debug_files definition
Browse files Browse the repository at this point in the history
This patch removes the local STUB_DEBUG_FILES debugging
definition. STUB_DEBUG_FILES was used only in ehci-hcd, whereas
CONFIG_DYNAMIC_DEBUG is used all over the kernel.

Signed-off-by: Geyslan G. Bem <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
geyslan authored and gregkh committed Feb 3, 2016
1 parent 3fd2900 commit 93df42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/ehci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status)

/*-------------------------------------------------------------------------*/

#ifdef STUB_DEBUG_FILES
#ifndef CONFIG_DYNAMIC_DEBUG

static inline void create_debug_files(struct ehci_hcd *bus) { }
static inline void remove_debug_files(struct ehci_hcd *bus) { }
Expand Down Expand Up @@ -1120,4 +1120,4 @@ static inline void remove_debug_files(struct ehci_hcd *ehci)
debugfs_remove_recursive(ehci->debug_dir);
}

#endif /* STUB_DEBUG_FILES */
#endif /* CONFIG_DYNAMIC_DEBUG */
5 changes: 0 additions & 5 deletions drivers/usb/host/ehci.h
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,6 @@ static inline u32 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x)
#define ehci_warn(ehci, fmt, args...) \
dev_warn(ehci_to_hcd(ehci)->self.controller, fmt, ## args)


#ifndef CONFIG_DYNAMIC_DEBUG
#define STUB_DEBUG_FILES
#endif

/*-------------------------------------------------------------------------*/

/* Declarations of things exported for use by ehci platform drivers */
Expand Down

0 comments on commit 93df42b

Please sign in to comment.