]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/amd_iommu.c
Merge tag 'iommu-updates-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[karo-tx-linux.git] / drivers / iommu / amd_iommu.c
index c9ccc74e0b9ea999b42cc9177c967b2415422201..634f636393d5e423b2a6d3bf01659c1643b865c8 100644 (file)
@@ -314,8 +314,7 @@ static u16 get_alias(struct device *dev)
         */
        if (pci_alias == devid &&
            PCI_BUS_NUM(ivrs_alias) == pdev->bus->number) {
-               pdev->dev_flags |= PCI_DEV_FLAGS_DMA_ALIAS_DEVFN;
-               pdev->dma_alias_devfn = ivrs_alias & 0xff;
+               pci_add_dma_alias(pdev, ivrs_alias & 0xff);
                pr_info("AMD-Vi: Added PCI DMA alias %02x.%d for %s\n",
                        PCI_SLOT(ivrs_alias), PCI_FUNC(ivrs_alias),
                        dev_name(dev));