File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5074,12 +5074,13 @@ static int pci_reset_bus_function(struct pci_dev *dev, bool probe)
50745074 return pci_parent_bus_reset (dev , probe );
50755075}
50765076
5077- static void pci_dev_lock (struct pci_dev * dev )
5077+ void pci_dev_lock (struct pci_dev * dev )
50785078{
50795079 pci_cfg_access_lock (dev );
50805080 /* block PM suspend, driver probe, etc. */
50815081 device_lock (& dev -> dev );
50825082}
5083+ EXPORT_SYMBOL_GPL (pci_dev_lock );
50835084
50845085/* Return 1 on successful lock, 0 on contention */
50855086int pci_dev_trylock (struct pci_dev * dev )
Original file line number Diff line number Diff line change @@ -1664,6 +1664,7 @@ void pci_cfg_access_lock(struct pci_dev *dev);
16641664bool pci_cfg_access_trylock (struct pci_dev * dev );
16651665void pci_cfg_access_unlock (struct pci_dev * dev );
16661666
1667+ void pci_dev_lock (struct pci_dev * dev );
16671668int pci_dev_trylock (struct pci_dev * dev );
16681669void pci_dev_unlock (struct pci_dev * dev );
16691670
You can’t perform that action at this time.
0 commit comments