Skip to content

Commit

Permalink
USB: ohci-hcd: fix compiler warning
Browse files Browse the repository at this point in the history
This patch (as806) fixes a compiler warning when ohci-hcd is built
with CONFIG_PM turned off.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 93c8bf4 commit b187844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/usb/host/ohci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ static void ohci_rhsc_enable (struct usb_hcd *hcd)
static void dl_done_list (struct ohci_hcd *);
static void finish_unlinks (struct ohci_hcd *, u16);

#ifdef CONFIG_PM
static int ohci_restart(struct ohci_hcd *ohci);
#endif

static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop)
__releases(ohci->lock)
__acquires(ohci->lock)
Expand Down Expand Up @@ -132,8 +136,6 @@ static inline struct ed *find_head (struct ed *ed)
return ed;
}

static int ohci_restart (struct ohci_hcd *ohci);

/* caller has locked the root hub */
static int ohci_rh_resume (struct ohci_hcd *ohci)
__releases(ohci->lock)
Expand Down

0 comments on commit b187844

Please sign in to comment.