From: Fabio Estevam Date: Tue, 12 Apr 2011 12:31:54 +0000 (-0300) Subject: USB: Mark ehci_adjust_port_wakeup_flags as __maybe_unused X-Git-Tag: upstream/snapshot3+hdmi~10346^2~138^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b0cd6c81defc4e4fccb9e9103666547fefdb9c0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c index d05ea03..1a21799 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) return 0; } -static void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, +static __maybe_unused void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, bool suspending, bool do_wakeup) { int port;