]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
usb: fix defined but not used warnings in hcd-pci.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Feb 2012 00:09:40 +0000 (19:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Feb 2012 18:53:08 +0000 (10:53 -0800)
commit87364624e2dd07c387b13e2ce0fda33448ef4247
tree6b4ad798cb959450dfb3e53cb76b6e79895488d2
parent656d2b3964a9d0f9864d472f8dfa2dd7dd42e6c0
usb: fix defined but not used warnings in hcd-pci.c

Shows up on ia64 builds (and possibly elsewhere) for configs that
don't set PM_RUNTIME or PM_SLEEP as follows:

drivers/usb/core/hcd-pci.c:383:12: warning: 'suspend_common' defined but not used
drivers/usb/core/hcd-pci.c:438:12: warning: 'resume_common' defined but not used

As per above, the functions are only used if RUNTIME/SLEEP are set,
so make the two functions conditional on these Kconfig values.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd-pci.c