File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5028,7 +5028,7 @@ static void pci_dev_lock(struct pci_dev *dev)
5028
5028
}
5029
5029
5030
5030
/* Return 1 on successful lock, 0 on contention */
5031
- static int pci_dev_trylock (struct pci_dev * dev )
5031
+ int pci_dev_trylock (struct pci_dev * dev )
5032
5032
{
5033
5033
if (pci_cfg_access_trylock (dev )) {
5034
5034
if (device_trylock (& dev -> dev ))
@@ -5038,12 +5038,14 @@ static int pci_dev_trylock(struct pci_dev *dev)
5038
5038
5039
5039
return 0 ;
5040
5040
}
5041
+ EXPORT_SYMBOL_GPL (pci_dev_trylock );
5041
5042
5042
- static void pci_dev_unlock (struct pci_dev * dev )
5043
+ void pci_dev_unlock (struct pci_dev * dev )
5043
5044
{
5044
5045
device_unlock (& dev -> dev );
5045
5046
pci_cfg_access_unlock (dev );
5046
5047
}
5048
+ EXPORT_SYMBOL_GPL (pci_dev_unlock );
5047
5049
5048
5050
static void pci_dev_save_and_disable (struct pci_dev * dev )
5049
5051
{
Original file line number Diff line number Diff line change @@ -1621,6 +1621,9 @@ void pci_cfg_access_lock(struct pci_dev *dev);
1621
1621
bool pci_cfg_access_trylock (struct pci_dev * dev );
1622
1622
void pci_cfg_access_unlock (struct pci_dev * dev );
1623
1623
1624
+ int pci_dev_trylock (struct pci_dev * dev );
1625
+ void pci_dev_unlock (struct pci_dev * dev );
1626
+
1624
1627
/*
1625
1628
* PCI domain support. Sometimes called PCI segment (eg by ACPI),
1626
1629
* a PCI domain is defined to be a set of PCI buses which share
You can’t perform that action at this time.
0 commit comments