diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-10-24 12:02:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 17:23:27 -0500 |
commit | b1878440d46a0dc357ed5c9687c534e20955e940 (patch) | |
tree | dccaff7b0312e5ddbd573becac2d5d134d64826f /drivers/usb/host/ohci-hub.c | |
parent | 93c8bf45e083b89dffe3a708363c15c1b220c723 (diff) |
USB: ohci-hcd: fix compiler warning
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>
Diffstat (limited to 'drivers/usb/host/ohci-hub.c')
-rw-r--r-- | drivers/usb/host/ohci-hub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 6995ea36f2e8..99357b99d133 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c | |||
@@ -50,6 +50,10 @@ static void ohci_rhsc_enable (struct usb_hcd *hcd) | |||
50 | static void dl_done_list (struct ohci_hcd *); | 50 | static void dl_done_list (struct ohci_hcd *); |
51 | static void finish_unlinks (struct ohci_hcd *, u16); | 51 | static void finish_unlinks (struct ohci_hcd *, u16); |
52 | 52 | ||
53 | #ifdef CONFIG_PM | ||
54 | static int ohci_restart(struct ohci_hcd *ohci); | ||
55 | #endif | ||
56 | |||
53 | static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) | 57 | static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) |
54 | __releases(ohci->lock) | 58 | __releases(ohci->lock) |
55 | __acquires(ohci->lock) | 59 | __acquires(ohci->lock) |
@@ -132,8 +136,6 @@ static inline struct ed *find_head (struct ed *ed) | |||
132 | return ed; | 136 | return ed; |
133 | } | 137 | } |
134 | 138 | ||
135 | static int ohci_restart (struct ohci_hcd *ohci); | ||
136 | |||
137 | /* caller has locked the root hub */ | 139 | /* caller has locked the root hub */ |
138 | static int ohci_rh_resume (struct ohci_hcd *ohci) | 140 | static int ohci_rh_resume (struct ohci_hcd *ohci) |
139 | __releases(ohci->lock) | 141 | __releases(ohci->lock) |