iommu/vt-d: Make device_to_iommu() cope with non-PCI devices
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 9 Mar 2014 21:00:57 +0000 (14:00 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:07:49 +0000 (14:07 +0000)
commit156baca8d31e1aced2c8a14262637aef1ab416b9
tree0753e871798fd4af853c7c41ac3fa95fd5cd0ec5
parent9b226624bbf7102cee67b6459bcb9c66dd081ca7
iommu/vt-d: Make device_to_iommu() cope with non-PCI devices

Pass the struct device to it, and also make it return the bus/devfn to use,
since that is also stored in the DMAR table.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c