]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/kernel/amd_iommu.c
x86, AMD IOMMU: replace DEVID macro with a function
[mv-sheeva.git] / arch / x86 / kernel / amd_iommu.c
index dec10e1a397c2fa9dac7c6890846acdf42af76e6..8c3deb027d3acf66408732bb998a62c7a0eb9f48 100644 (file)
@@ -664,7 +664,7 @@ static int get_device_resources(struct device *dev,
        BUG_ON(!dev || dev->bus != &pci_bus_type || !dev->dma_mask);
 
        pcidev = to_pci_dev(dev);
-       _bdf = (pcidev->bus->number << 8) | pcidev->devfn;
+       _bdf = calc_devid(pcidev->bus->number, pcidev->devfn);
 
        /* device not translated by any IOMMU in the system? */
        if (_bdf >= amd_iommu_last_bdf) {