--- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -1637,10 +1637,10 @@ static int ath10k_fw_init(struct ath10k ar_snoc->fw.dev = &pdev->dev; - iommu_dom = iommu_paging_domain_alloc(ar_snoc->fw.dev); - if (IS_ERR(iommu_dom)) { + iommu_dom = iommu_domain_alloc(&platform_bus_type); + if (!iommu_dom) { ath10k_err(ar, "failed to allocate iommu domain\n"); - ret = PTR_ERR(iommu_dom); + ret = -ENOMEM; goto err_unregister; } --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -1031,10 +1031,10 @@ static int ath11k_ahb_fw_resources_init( ab_ahb->fw.dev = &pdev->dev; - iommu_dom = iommu_paging_domain_alloc(ab_ahb->fw.dev); - if (IS_ERR(iommu_dom)) { + iommu_dom = iommu_domain_alloc(&platform_bus_type); + if (!iommu_dom) { ath11k_err(ab, "failed to allocate iommu domain\n"); - ret = PTR_ERR(iommu_dom); + ret = -ENOMEM; goto err_unregister; }