Skip to content

Commit

Permalink
PCI: Inline the ATS setup code into pci_ats_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas committed Aug 13, 2015
1 parent 3c76539 commit afdd596
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/pci/ats.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit afdd596

Please sign in to comment.