Skip to content

Commit

Permalink
USB: ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused
Browse files Browse the repository at this point in the history
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 <stigge@antcom.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Roland Stigge authored and Greg Kroah-Hartman committed Jun 14, 2012
1 parent 0658a33 commit c4828d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ohci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4828d9

Please sign in to comment.