diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-17 23:35:18 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-08-13 23:57:23 +0300 |
commit | afdd596c42c4540308eae9f4c685d9bccc525cfc (patch) | |
tree | 3280314280385a9dfabce4f9d9dae5e376fc1265 /drivers/pci/ats.c | |
parent | 3c765399524308ab36777a443ce77e19810a97d7 (diff) | |
download | linux-afdd596c42c4540308eae9f4c685d9bccc525cfc.tar.xz |
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: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/pci/ats.c')
-rw-r--r-- | drivers/pci/ats.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c index 9a98b3a4f983..95905f3c08f1 100644 --- a/drivers/pci/ats.c +++ b/drivers/pci/ats.c @@ -17,7 +17,7 @@ #include "pci.h" -static void ats_alloc_one(struct pci_dev *dev) +void pci_ats_init(struct pci_dev *dev) { int pos; u16 cap; @@ -32,11 +32,6 @@ static void ats_alloc_one(struct pci_dev *dev) PCI_ATS_MAX_QDEP; } -void pci_ats_init(struct pci_dev *dev) -{ - ats_alloc_one(dev); -} - /** * pci_enable_ats - enable the ATS capability * @dev: the PCI device |