PCI: Remove pci_ats_enabled()
Remove pci_ats_enabled(). There are no callers outside the ATS code
itself. We don't need to check ats_cap, because if we don't find an ATS
capability, we'll never set ats_enabled.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
index ceda7dc..eeb9fb2 100644
--- a/drivers/pci/ats.c
+++ b/drivers/pci/ats.c
@@ -43,7 +43,7 @@
if (!dev->ats_cap)
return -EINVAL;
- if (WARN_ON(pci_ats_enabled(dev)))
+ if (WARN_ON(dev->ats_enabled))
return -EBUSY;
if (ps < PCI_ATS_MIN_STU)
@@ -80,7 +80,7 @@
struct pci_dev *pdev;
u16 ctrl;
- if (WARN_ON(!pci_ats_enabled(dev)))
+ if (WARN_ON(!dev->ats_enabled))
return;
if (atomic_read(&dev->ats_ref_cnt))
@@ -103,7 +103,7 @@
{
u16 ctrl;
- if (!pci_ats_enabled(dev))
+ if (!dev->ats_enabled)
return;
ctrl = PCI_ATS_CTRL_ENABLE;