]> Pileus Git - ~andy/linux/commit
iommu: Move swap_pci_ref function to drivers/iommu/pci.h.
authorVarun Sethi <Varun.Sethi@freescale.com>
Tue, 23 Apr 2013 04:35:24 +0000 (10:05 +0530)
committerJoerg Roedel <joro@8bytes.org>
Tue, 23 Apr 2013 12:55:00 +0000 (14:55 +0200)
commit61e015ac5b4d46c2054a78d9bc82c840274929a0
treee2990506417fa4bdebb73b17e9081f952500c933
parent9a08d3766874835f4eba1b3d66938326c069d817
iommu: Move swap_pci_ref function to drivers/iommu/pci.h.

The swap_pci_ref function is used by the IOMMU API code for
swapping pci device pointers, while determining the iommu
group for the device.
Currently this function was being implemented for different
IOMMU drivers.  This patch moves the function to a new file,
drivers/iommu/pci.h so that the implementation can be
shared across various IOMMU drivers.

Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/amd_iommu.c
drivers/iommu/intel-iommu.c
drivers/iommu/pci.h [new file with mode: 0644]