Commit afdd596c authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI: Inline the ATS setup code into pci_ats_init()

The ATS setup code in ats_alloc_one() is only used by pci_ats_init(), so
inline it there.  No functional change.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 3c765399
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "pci.h" #include "pci.h"
static void ats_alloc_one(struct pci_dev *dev) void pci_ats_init(struct pci_dev *dev)
{ {
int pos; int pos;
u16 cap; u16 cap;
...@@ -32,11 +32,6 @@ static void ats_alloc_one(struct pci_dev *dev) ...@@ -32,11 +32,6 @@ static void ats_alloc_one(struct pci_dev *dev)
PCI_ATS_MAX_QDEP; PCI_ATS_MAX_QDEP;
} }
void pci_ats_init(struct pci_dev *dev)
{
ats_alloc_one(dev);
}
/** /**
* pci_enable_ats - enable the ATS capability * pci_enable_ats - enable the ATS capability
* @dev: the PCI device * @dev: the PCI device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment