mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
iommu/core: Add bus_type parameter to iommu_domain_alloc
This is necessary to store a pointer to the bus-specific iommu_ops in the iommu-domain structure. It will be used later to call into bus-specific iommu-ops. Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
ff21776d12
commit
905d66c1e5
4 changed files with 19 additions and 5 deletions
|
|
@ -2141,7 +2141,7 @@ static int isp_probe(struct platform_device *pdev)
|
|||
/* to be removed once iommu migration is complete */
|
||||
isp->iommu = to_iommu(isp->iommu_dev);
|
||||
|
||||
isp->domain = iommu_domain_alloc();
|
||||
isp->domain = iommu_domain_alloc(pdev->dev.bus);
|
||||
if (!isp->domain) {
|
||||
dev_err(isp->dev, "can't alloc iommu domain\n");
|
||||
ret = -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue