Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7207d8f9
Commit
7207d8f9
authored
Mar 09, 2014
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iommu/vt-d: Remove pdev from intel_iommu_attach_device()
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
ecb509ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/iommu/intel-iommu.c
drivers/iommu/intel-iommu.c
+2
-3
No files found.
drivers/iommu/intel-iommu.c
View file @
7207d8f9
...
@@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
...
@@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
struct
device
*
dev
)
struct
device
*
dev
)
{
{
struct
dmar_domain
*
dmar_domain
=
domain
->
priv
;
struct
dmar_domain
*
dmar_domain
=
domain
->
priv
;
struct
pci_dev
*
pdev
=
to_pci_dev
(
dev
);
struct
intel_iommu
*
iommu
;
struct
intel_iommu
*
iommu
;
int
addr_width
;
int
addr_width
;
u8
bus
,
devfn
;
u8
bus
,
devfn
;
/* normally
p
dev is not mapped */
/* normally dev is not mapped */
if
(
unlikely
(
domain_context_mapped
(
&
pdev
->
dev
)))
{
if
(
unlikely
(
domain_context_mapped
(
dev
)))
{
struct
dmar_domain
*
old_domain
;
struct
dmar_domain
*
old_domain
;
old_domain
=
find_domain
(
dev
);
old_domain
=
find_domain
(
dev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment