diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-04-12 08:31:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 19:41:01 -0400 |
commit | 0b0cd6c81defc4e4fccb9e9103666547fefdb9c0 (patch) | |
tree | e0bfabbfcffbafee5dbf234025c8e49183022c5a /drivers/usb/host/ehci-hub.c | |
parent | 74d1dc8d8d13fef55c33b49f06ab84eeebf967c4 (diff) |
USB: Mark ehci_adjust_port_wakeup_flags as __maybe_unused
Mark ehci_adjust_port_wakeup_flags as __maybe_unused to avoid the following
warning when building the ehci-mxc driver:
CC drivers/usb/host/ehci-hcd.o
drivers/usb/host/ehci-hub.c:130: warning: 'ehci_adjust_port_wakeup_flags' defined but not used
Current ehci-mxc driver implementation does not support suspend/resume.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hub.c')
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index d05ea03cfb4d..1a21799195af 100644 --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c | |||
@@ -127,7 +127,7 @@ static int ehci_port_change(struct ehci_hcd *ehci) | |||
127 | return 0; | 127 | return 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | static void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, | 130 | static __maybe_unused void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, |
131 | bool suspending, bool do_wakeup) | 131 | bool suspending, bool do_wakeup) |
132 | { | 132 | { |
133 | int port; | 133 | int port; |