mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ACPI/IORT: Use device_iommu_mapped()
Replace the iommu-check with a proper and readable function call. Cc: Lorenzo Pieralisi <[email protected]> Acked-by: Robin Murphy <[email protected]> Acked-by: Hanjun Guo <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
170ecbd5ff
commit
13e6a84d69
1 changed files with 1 additions and 1 deletions
|
|
@ -806,7 +806,7 @@ static inline int iort_add_device_replay(const struct iommu_ops *ops,
|
|||
{
|
||||
int err = 0;
|
||||
|
||||
if (ops->add_device && dev->bus && !dev->iommu_group)
|
||||
if (ops->add_device && dev->bus && !device_iommu_mapped(dev))
|
||||
err = ops->add_device(dev);
|
||||
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue