summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2013-02-28 01:07:30 +0100
committerBjorn Helgaas <bhelgaas@google.com>2013-03-26 23:21:58 +0100
commit6f2729bab2cc386bb603698646dacd9ab6297ba0 (patch)
tree40e0daad672d14546cf810bfd77bb1006575a999 /drivers/iommu/amd_iommu.c
parentiommu/amd: Remove local PCI_BUS() define and use PCI_BUS_NUM() from PCI (diff)
downloadlinux-6f2729bab2cc386bb603698646dacd9ab6297ba0.tar.xz
linux-6f2729bab2cc386bb603698646dacd9ab6297ba0.zip
iommu/amd: Remove calc_devid() and use PCI_DEVID() from PCI
Change to remove calc_devid() and use PCI_DEVID() from PCI instead. Signed-off-by: Shuah Khan <shuah.khan@hp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 2a50fbe31c7b..e046d7acca84 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -173,7 +173,7 @@ static inline u16 get_device_id(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
- return calc_devid(pdev->bus->number, pdev->devfn);
+ return PCI_DEVID(pdev->bus->number, pdev->devfn);
}
static struct iommu_dev_data *get_dev_data(struct device *dev)