File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
VERSION = 6
3
3
PATCHLEVEL = 1
4
- SUBLEVEL = 125
4
+ SUBLEVEL = 126
5
5
EXTRAVERSION =
6
6
NAME = Curry Ramen
7
7
Original file line number Diff line number Diff line change @@ -571,6 +571,7 @@ static void xhci_pci_remove(struct pci_dev *dev)
571
571
pci_set_power_state (dev , PCI_D3hot );
572
572
}
573
573
574
+ #ifdef CONFIG_PM
574
575
/*
575
576
* In some Intel xHCI controllers, in order to get D3 working,
576
577
* through a vendor specific SSIC CONFIG register at offset 0x883c,
@@ -720,6 +721,7 @@ static void xhci_pci_shutdown(struct usb_hcd *hcd)
720
721
if (xhci -> quirks & XHCI_SPURIOUS_WAKEUP )
721
722
pci_set_power_state (pdev , PCI_D3hot );
722
723
}
724
+ #endif /* CONFIG_PM */
723
725
724
726
/*-------------------------------------------------------------------------*/
725
727
@@ -769,9 +771,11 @@ static struct pci_driver xhci_pci_driver = {
769
771
static int __init xhci_pci_init (void )
770
772
{
771
773
xhci_init_driver (& xhci_pci_hc_driver , & xhci_pci_overrides );
774
+ #ifdef CONFIG_PM
772
775
xhci_pci_hc_driver .pci_suspend = xhci_pci_suspend ;
773
776
xhci_pci_hc_driver .pci_resume = xhci_pci_resume ;
774
777
xhci_pci_hc_driver .shutdown = xhci_pci_shutdown ;
778
+ #endif
775
779
return pci_register_driver (& xhci_pci_driver );
776
780
}
777
781
module_init (xhci_pci_init );
You can’t perform that action at this time.
0 commit comments