[PATCH] USB: OHCI: fix build error related to ohci_suspend/resume

2013-08-26 Thread Alan Stern
Commit 9a11899c5e69 (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

Re: [PATCH] USB: OHCI: fix build error related to ohci_suspend/resume

2013-08-26 Thread Guenter Roeck
On Mon, Aug 26, 2013 at 08:38:40AM -0700, Greg Kroah-Hartman wrote: On Mon, Aug 26, 2013 at 10:53:53AM -0400, Alan Stern wrote: Commit 9a11899c5e69 (USB: OHCI: add missing PCI PM callbacks to ohci-pci.c) added missing ohci_suspend and ohci_resume callback pointers, but forgot that these

Re: [PATCH] USB: OHCI: fix build error related to ohci_suspend/resume

2013-08-26 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2013 at 09:06:27AM -0700, Guenter Roeck wrote: On Mon, Aug 26, 2013 at 08:38:40AM -0700, Greg Kroah-Hartman wrote: On Mon, Aug 26, 2013 at 10:53:53AM -0400, Alan Stern wrote: Commit 9a11899c5e69 (USB: OHCI: add missing PCI PM callbacks to ohci-pci.c) added missing

Re: [PATCH] USB: OHCI: fix build error related to ohci_suspend/resume

2013-08-26 Thread Guenter Roeck
On Mon, Aug 26, 2013 at 09:50:22AM -0700, Greg Kroah-Hartman wrote: On Mon, Aug 26, 2013 at 09:06:27AM -0700, Guenter Roeck wrote: On Mon, Aug 26, 2013 at 08:38:40AM -0700, Greg Kroah-Hartman wrote: On Mon, Aug 26, 2013 at 10:53:53AM -0400, Alan Stern wrote: Commit 9a11899c5e69 (USB: