]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: fix build error when CONFIG_PM_SLEEP isn't enabled
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 30 Aug 2013 14:46:00 +0000 (10:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:12 +0000 (17:18 -0700)
commit94cc662c4bd9f8487d54262bbfc2307d9b1fc6b1
tree2da93513e9b98f3deee3530d4ab55694f67b5ef9
parentddcc49fb2db6457861dbb0b99844b2a5b53b5c88
USB: fix build error when CONFIG_PM_SLEEP isn't enabled

commit 9d8924297cd9c256c23c02abae40202563452453 upstream.

This patch fixes a build error that occurs when CONFIG_PM is enabled
and CONFIG_PM_SLEEP isn't:

>> drivers/usb/host/ohci-pci.c:294:10: error: 'usb_hcd_pci_pm_ops' undeclared here (not in a function)
      .pm = &usb_hcd_pci_pm_ops

Since the usb_hcd_pci_pm_ops structure is defined and used when
CONFIG_PM is enabled, its declaration should not be protected by
CONFIG_PM_SLEEP.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/hcd.h