File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,7 @@ static struct ipmmu_vmsa_domain *to_vmsa_domain(struct iommu_domain *dom)
89
89
90
90
static struct ipmmu_vmsa_device * to_ipmmu (struct device * dev )
91
91
{
92
- struct iommu_fwspec * fwspec = dev_iommu_fwspec_get (dev );
93
-
94
- return fwspec ? fwspec -> iommu_priv : NULL ;
92
+ return dev_iommu_priv_get (dev );
95
93
}
96
94
97
95
#define TLB_LOOP_TIMEOUT 100 /* 100us */
@@ -727,14 +725,13 @@ static phys_addr_t ipmmu_iova_to_phys(struct iommu_domain *io_domain,
727
725
static int ipmmu_init_platform_device (struct device * dev ,
728
726
struct of_phandle_args * args )
729
727
{
730
- struct iommu_fwspec * fwspec = dev_iommu_fwspec_get (dev );
731
728
struct platform_device * ipmmu_pdev ;
732
729
733
730
ipmmu_pdev = of_find_device_by_node (args -> np );
734
731
if (!ipmmu_pdev )
735
732
return - ENODEV ;
736
733
737
- fwspec -> iommu_priv = platform_get_drvdata (ipmmu_pdev );
734
+ dev_iommu_priv_set ( dev , platform_get_drvdata (ipmmu_pdev ) );
738
735
739
736
return 0 ;
740
737
}
You can’t perform that action at this time.
0 commit comments