From: Sarah Sharp Date: Fri, 15 Oct 2010 18:24:14 +0000 (-0700) Subject: USB: xhci: Fix compile error when CONFIG_PM=n X-Git-Tag: v2.6.37-rc1~154^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5b5c3ac5123dab047cfeff472053ab737052e9b;p=pandora-kernel.git USB: xhci: Fix compile error when CONFIG_PM=n Fix this error when CONFIG_PM is not enabled: drivers/usb/host/xhci.c:675: error: implicit declaration of function 'usb_root_hub_lost_power' Wrap xhci_suspend() and xhci_resume() into an ifdef CONFIG_PM, along with the functions that only they call -- xhci_save_registers() and xhci_restore_registers(). Reported-by: Randy Dunlap Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed