File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -505,11 +505,13 @@ static inline int pci_iov_bus_range(struct pci_bus *bus)
505
505
#endif /* CONFIG_PCI_IOV */
506
506
507
507
#ifdef CONFIG_PCIE_PTM
508
+ void pci_ptm_init (struct pci_dev * dev );
508
509
void pci_save_ptm_state (struct pci_dev * dev );
509
510
void pci_restore_ptm_state (struct pci_dev * dev );
510
511
void pci_suspend_ptm (struct pci_dev * dev );
511
512
void pci_resume_ptm (struct pci_dev * dev );
512
513
#else
514
+ static inline void pci_ptm_init (struct pci_dev * dev ) { }
513
515
static inline void pci_save_ptm_state (struct pci_dev * dev ) { }
514
516
static inline void pci_restore_ptm_state (struct pci_dev * dev ) { }
515
517
static inline void pci_suspend_ptm (struct pci_dev * dev ) { }
@@ -577,12 +579,6 @@ static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { }
577
579
static inline void pcie_ecrc_get_policy (char * str ) { }
578
580
#endif
579
581
580
- #ifdef CONFIG_PCIE_PTM
581
- void pci_ptm_init (struct pci_dev * dev );
582
- #else
583
- static inline void pci_ptm_init (struct pci_dev * dev ) { }
584
- #endif
585
-
586
582
struct pci_dev_reset_methods {
587
583
u16 vendor ;
588
584
u16 device ;
You can’t perform that action at this time.
0 commit comments