Allow pci_enable_ptm to be called outside of the pci subsystem
PATCH 1/1 Allow pci_enable_ptm to be called outside of the pci subsystem
Allow external drivers to enable PTM bits on their respective devices. Please CC me when replying, thanks.
Yong, Jonathan (1):
PCI: Export pci_enable_ptm
drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.7.3
PATCH 1/1 PCI: Export pci_enable_ptm
Export symbol so device drivers outside of the core pci subsystem can use it.
Signed-off-by Yong, Jonathan <[email protected]>
--- drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/pcie/ptm.c +1 -0
@@ -139,3 +139,4 @@ int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) *granularity = dev->ptm_granularity;return 0 ; } +EXPORT_SYMBOL (pci_enable_ptm);
Signature · 1 line
2.7.3
Re: [PATCH] PCI: Export pci_enable_ptm
Quoted 13 lines · Jonathan
Export symbol so device drivers outside of the core pci subsystem can use it.
Signed-off-by Yong, Jonathan <[email protected]>--- drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+)drivers/pci/pcie/ptm.c +0
-0
drivers/pci/pcie/ptm.c int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) · line 142
Quoted 4 lines
drivers/pci/pcie/ptm.c +1
-0@@ -139,3 +139,4 @@ int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) *granularity = dev->ptm_granularity;return 0 ; } +EXPORT_SYMBOL (pci_enable_ptm);
I just folded this into the original patch on the pci/ptm branch, since it hasn't been merged anywhere. Thanks!