Skip to content

Commit

Permalink
usb: ehci: unlink_empty_async_suspended() only used with CONFIG_PM
Browse files Browse the repository at this point in the history
Compiling with !CONFIG_PM generates an unused function warning on
unlink_empty_async_suspended().

Enclose the function in a #ifdef CONFIG_PM

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tony Prisk authored and Greg Kroah-Hartman committed Mar 28, 2013
1 parent ab1f046 commit 4d053fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/host/ehci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,7 @@ static void unlink_empty_async(struct ehci_hcd *ehci)
}
}

#ifdef CONFIG_PM
/* The root hub is suspended; unlink all the async QHs */
static void unlink_empty_async_suspended(struct ehci_hcd *ehci)
{
Expand All @@ -1305,6 +1306,7 @@ static void unlink_empty_async_suspended(struct ehci_hcd *ehci)
}
start_iaa_cycle(ehci);
}
#endif

/* makes sure the async qh will become idle */
/* caller must own ehci->lock */
Expand Down

0 comments on commit 4d053fd

Please sign in to comment.