Signed-off-by: Ron Economos <re@w6rz.net>
Link: https://lore.kernel.org/r/d0919169-ee06-4bdd-b2e3-2f776db90971@roeck-us.net
Reported-by: Guenter Roeck <linux@roeck-us.net>
+[ Trimmed the partial revert down to an even smaller bit to only be what
+ is required to fix the build error - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- drivers/usb/host/xhci-pci.c | 8 +++++++-
- include/linux/usb/hcd.h | 2 ++
- 2 files changed, 9 insertions(+), 1 deletion(-)
+ drivers/usb/host/xhci-pci.c | 4 ++++
+ 1 file changed, 4 insertions(+)
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
/*-------------------------------------------------------------------------*/
-@@ -761,17 +763,21 @@ static struct pci_driver xhci_pci_driver
- /* suspend and resume implemented later */
-
- .shutdown = usb_hcd_pci_shutdown,
-+#ifdef CONFIG_PM
- .driver = {
-- .pm = pm_ptr(&usb_hcd_pci_pm_ops),
-+ .pm = &usb_hcd_pci_pm_ops
- },
-+#endif
- };
-
+@@ -769,9 +771,11 @@ static struct pci_driver xhci_pci_driver
static int __init xhci_pci_init(void)
{
xhci_init_driver(&xhci_pci_hc_driver, &xhci_pci_overrides);
return pci_register_driver(&xhci_pci_driver);
}
module_init(xhci_pci_init);
---- a/include/linux/usb/hcd.h
-+++ b/include/linux/usb/hcd.h
-@@ -486,7 +486,9 @@ extern void usb_hcd_pci_shutdown(struct
-
- extern int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev);
-
-+#ifdef CONFIG_PM
- extern const struct dev_pm_ops usb_hcd_pci_pm_ops;
-+#endif
- #endif /* CONFIG_USB_PCI */
-
- /* pci-ish (pdev null is ok) buffer alloc/mapping support */