From: Roland Stigge Date: Mon, 11 Jun 2012 19:38:29 +0000 (+0200) Subject: USB: ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused X-Git-Tag: Ubuntu-5.0.0-8.9~15835^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c4828d96900453f1ad506b1488928307711a8b28;p=mirror_ubuntu-disco-kernel.git USB: ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused ohci_finish_controller_resume() is intended to be used in platform specific drivers ohci-*.c, included from ohci-hcd.c. Some of them don't actually use ohci_finish_controller_resume(), so mark it as __maybe_unused. Signed-off-by: Roland Stigge Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 836772dfabd3..2f3619eefefa 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c @@ -317,7 +317,7 @@ static int ohci_bus_resume (struct usb_hcd *hcd) } /* Carry out the final steps of resuming the controller device */ -static void ohci_finish_controller_resume(struct usb_hcd *hcd) +static void __maybe_unused ohci_finish_controller_resume(struct usb_hcd *hcd) { struct ohci_hcd *ohci = hcd_to_ohci(hcd); int port;