diff options
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index b287ca33833d..685f2821333a 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include "amd_iommu_proto.h" | 46 | #include "amd_iommu_proto.h" |
47 | #include "amd_iommu_types.h" | 47 | #include "amd_iommu_types.h" |
48 | #include "irq_remapping.h" | 48 | #include "irq_remapping.h" |
49 | #include "pci.h" | ||
49 | 50 | ||
50 | #define CMD_SET_TYPE(cmd, t) ((cmd)->data[1] |= ((t) << 28)) | 51 | #define CMD_SET_TYPE(cmd, t) ((cmd)->data[1] |= ((t) << 28)) |
51 | 52 | ||
@@ -263,12 +264,6 @@ static bool check_device(struct device *dev) | |||
263 | return true; | 264 | return true; |
264 | } | 265 | } |
265 | 266 | ||
266 | static void swap_pci_ref(struct pci_dev **from, struct pci_dev *to) | ||
267 | { | ||
268 | pci_dev_put(*from); | ||
269 | *from = to; | ||
270 | } | ||
271 | |||
272 | static struct pci_bus *find_hosted_bus(struct pci_bus *bus) | 267 | static struct pci_bus *find_hosted_bus(struct pci_bus *bus) |
273 | { | 268 | { |
274 | while (!bus->self) { | 269 | while (!bus->self) { |