]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Fix compile error when CONFIG_PM=n
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 15 Oct 2010 18:24:14 +0000 (11:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:14 +0000 (10:22 -0700)
commit718568f255c02c60c6ae990c941450c7651e41ca
treed86d34c3e268f3ff52154add1376e89e1a98bdb2
parente60b4f4ce1a7c23a5c2d56f929b95d502660b051
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 <randy.dunlap@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci.c