]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Fix compile with CONFIG_USB_SUSPEND=n
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 21 May 2012 14:54:42 +0000 (07:54 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 21 May 2012 16:00:05 +0000 (09:00 -0700)
commit4ee69ab6eb144da82ed7b51d7998fcf3fb4e703b
tree67485b4351b7d4eec38ea69d355449c7c43f130a
parentce45b294b11530f01826122131f837adca7cec65
xhci: Fix compile with CONFIG_USB_SUSPEND=n

The USB 2.0 Link PM code is conditionally compiled when
CONFIG_USB_SUSPEND=y.  I believe that's a mistake, since Link PM is not
directly related to USB device suspend and Link PM is implemented
without relying on any of the suspend code in the USB core.  For now,
keep the USB 2.0 Link PM code conditionally compiled if
CONFIG_USB_SUSPEND=y.

This patch does move the code to implement USB 3.0 Link PM out of the
xHCI driver #ifdefs for CONFIG_USB_SUSPEND and moves it into a section
dependent on CONFIG_PM.  The USB core functions for USB 3.0 Link PM are
already conditionally compiled when CONFIG_PM=y.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c