]> Pileus Git - ~andy/linux/blobdiff - drivers/iommu/amd_iommu.c
iommu: Move swap_pci_ref function to drivers/iommu/pci.h.
[~andy/linux] / drivers / iommu / amd_iommu.c
index b287ca33833df792350baad6f82fefbe1494e038..685f2821333af28273343cfacf6d897a68f804ec 100644 (file)
@@ -46,6 +46,7 @@
 #include "amd_iommu_proto.h"
 #include "amd_iommu_types.h"
 #include "irq_remapping.h"
+#include "pci.h"
 
 #define CMD_SET_TYPE(cmd, t) ((cmd)->data[1] |= ((t) << 28))
 
@@ -263,12 +264,6 @@ static bool check_device(struct device *dev)
        return true;
 }
 
-static void swap_pci_ref(struct pci_dev **from, struct pci_dev *to)
-{
-       pci_dev_put(*from);
-       *from = to;
-}
-
 static struct pci_bus *find_hosted_bus(struct pci_bus *bus)
 {
        while (!bus->self) {