]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: Inline the ATS setup code into pci_ats_init()
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Jul 2015 20:35:18 +0000 (15:35 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Aug 2015 20:57:23 +0000 (15:57 -0500)
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>
drivers/pci/ats.c

index 9a98b3a4f98349e1a0150fbed39de71689fd9d0a..95905f3c08f115e09c38618ea96ad7d8ac0f86a6 100644 (file)
@@ -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