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)
5074
5074
return pci_parent_bus_reset (dev , probe );
5075
5075
}
5076
5076
5077
- static void pci_dev_lock (struct pci_dev * dev )
5077
+ void pci_dev_lock (struct pci_dev * dev )
5078
5078
{
5079
5079
pci_cfg_access_lock (dev );
5080
5080
/* block PM suspend, driver probe, etc. */
5081
5081
device_lock (& dev -> dev );
5082
5082
}
5083
+ EXPORT_SYMBOL_GPL (pci_dev_lock );
5083
5084
5084
5085
/* Return 1 on successful lock, 0 on contention */
5085
5086
int 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);
1664
1664
bool pci_cfg_access_trylock (struct pci_dev * dev );
1665
1665
void pci_cfg_access_unlock (struct pci_dev * dev );
1666
1666
1667
+ void pci_dev_lock (struct pci_dev * dev );
1667
1668
int pci_dev_trylock (struct pci_dev * dev );
1668
1669
void pci_dev_unlock (struct pci_dev * dev );
1669
1670
You can’t perform that action at this time.
0 commit comments