mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
iommu/vt-d: Remove pdev from intel_iommu_attach_device()
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
ecb509ec2b
commit
7207d8f925
1 changed files with 2 additions and 3 deletions
|
|
@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
|
|||
struct device *dev)
|
||||
{
|
||||
struct dmar_domain *dmar_domain = domain->priv;
|
||||
struct pci_dev *pdev = to_pci_dev(dev);
|
||||
struct intel_iommu *iommu;
|
||||
int addr_width;
|
||||
u8 bus, devfn;
|
||||
|
||||
/* normally pdev is not mapped */
|
||||
if (unlikely(domain_context_mapped(&pdev->dev))) {
|
||||
/* normally dev is not mapped */
|
||||
if (unlikely(domain_context_mapped(dev))) {
|
||||
struct dmar_domain *old_domain;
|
||||
|
||||
old_domain = find_domain(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue