From: Paul Gortmaker Date: Sun, 26 Feb 2012 00:09:40 +0000 (-0500) Subject: usb: fix defined but not used warnings in hcd-pci.c X-Git-Tag: v3.4-rc1~184^2~22^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87364624e2dd07c387b13e2ce0fda33448ef4247;p=pandora-kernel.git 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 Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed