]> git.baikalelectronics.ru Git - kernel.git/commit
USB: OHCI: fix build error related to ohci_suspend/resume
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 26 Aug 2013 14:53:53 +0000 (10:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 22:22:15 +0000 (15:22 -0700)
commit6009b089d680e296dcdaf7bf7a9d690311d0bac4
tree42fdb80dbcb67108811660fc0deabfd876a8412c
parentae0ab262d3b4f741bdeb7774236d5d1b99fe913c
USB: OHCI: fix build error related to ohci_suspend/resume

Commit 6d977eeae61f (USB: OHCI: add missing PCI PM callbacks to
ohci-pci.c) added missing ohci_suspend and ohci_resume callback
pointers, but forgot that these callbacks are declared and defined
only when CONFIG_PM is enabled.

This patch adds a preprocessor conditional to avoid build errors when
PM is disabled.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Meelis Roos <mroos@linux.ee>,
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-pci.c