projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb509e
)
iommu/vt-d: Remove pdev from intel_iommu_attach_device()
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 9 Mar 2014 23:31:06 +0000
(16:31 -0700)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:08:05 +0000
(14:08 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 0f5e6c911e8529ed21e0d37b5a3fd5c7e7b7a534..37ce54b188f3d04d151c82298f04a327a66fd12a 100644
(file)
--- a/
drivers/iommu/intel-iommu.c
+++ b/
drivers/iommu/intel-iommu.c
@@
-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
p
dev 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);