diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-10-23 04:33:58 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-12-24 07:15:26 +0100 |
commit | 9d8c850d02b01f3e0157a8f9859fe3f04cab68fe (patch) | |
tree | 8973c4e998ce6d32086e7678c4c0e11517916a77 /drivers/usb/chipidea/debug.h | |
parent | usb: chipidea: udc: improve error handling on _hardware_enqueue (diff) | |
download | linux-9d8c850d02b01f3e0157a8f9859fe3f04cab68fe.tar.xz linux-9d8c850d02b01f3e0157a8f9859fe3f04cab68fe.zip |
usb: chipidea: support debugfs without CONFIG_USB_CHIPIDEA_DEBUG
Since we need to mount debugfs to show/store the things we
want to debug, it is duplicated to add another configuration
to enable it. Meanwhile, with CONFIG_USB_CHIPIDEA_DEBUG,
we can't support chipidea debugfs at runtime.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Cc: Jun Li <jun.li@freescale.com>
Diffstat (limited to 'drivers/usb/chipidea/debug.h')
-rw-r--r-- | drivers/usb/chipidea/debug.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/usb/chipidea/debug.h b/drivers/usb/chipidea/debug.h deleted file mode 100644 index e16478c4a943..000000000000 --- a/drivers/usb/chipidea/debug.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * debug.h - ChipIdea USB driver debug interfaces - * - * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved. - * - * Author: David Lopo - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H -#define __DRIVERS_USB_CHIPIDEA_DEBUG_H - -#ifdef CONFIG_USB_CHIPIDEA_DEBUG -int dbg_create_files(struct ci_hdrc *ci); -void dbg_remove_files(struct ci_hdrc *ci); -#else -static inline int dbg_create_files(struct ci_hdrc *ci) -{ - return 0; -} - -static inline void dbg_remove_files(struct ci_hdrc *ci) -{ -} -#endif - -#endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */ |