提交 b1878440 编写于 作者: A Alan Stern 提交者: Greg Kroah-Hartman

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: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 93c8bf45
...@@ -50,6 +50,10 @@ static void ohci_rhsc_enable (struct usb_hcd *hcd) ...@@ -50,6 +50,10 @@ static void ohci_rhsc_enable (struct usb_hcd *hcd)
static void dl_done_list (struct ohci_hcd *); static void dl_done_list (struct ohci_hcd *);
static void finish_unlinks (struct ohci_hcd *, u16); 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) static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop)
__releases(ohci->lock) __releases(ohci->lock)
__acquires(ohci->lock) __acquires(ohci->lock)
...@@ -132,8 +136,6 @@ static inline struct ed *find_head (struct ed *ed) ...@@ -132,8 +136,6 @@ static inline struct ed *find_head (struct ed *ed)
return ed; return ed;
} }
static int ohci_restart (struct ohci_hcd *ohci);
/* caller has locked the root hub */ /* caller has locked the root hub */
static int ohci_rh_resume (struct ohci_hcd *ohci) static int ohci_rh_resume (struct ohci_hcd *ohci)
__releases(ohci->lock) __releases(ohci->lock)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册