File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,6 @@ static const struct iommu_ops mtk_iommu_v1_ops;
401
401
static int mtk_iommu_v1_create_mapping (struct device * dev ,
402
402
const struct of_phandle_args * args )
403
403
{
404
- struct iommu_fwspec * fwspec = dev_iommu_fwspec_get (dev );
405
404
struct mtk_iommu_v1_data * data ;
406
405
struct platform_device * m4updev ;
407
406
struct dma_iommu_mapping * mtk_mapping ;
@@ -413,14 +412,9 @@ static int mtk_iommu_v1_create_mapping(struct device *dev,
413
412
return - EINVAL ;
414
413
}
415
414
416
- if (!fwspec ) {
417
- ret = iommu_fwspec_init (dev , & args -> np -> fwnode , & mtk_iommu_v1_ops );
418
- if (ret )
419
- return ret ;
420
- fwspec = dev_iommu_fwspec_get (dev );
421
- } else if (dev_iommu_fwspec_get (dev )-> ops != & mtk_iommu_v1_ops ) {
422
- return - EINVAL ;
423
- }
415
+ ret = iommu_fwspec_init (dev , & args -> np -> fwnode , & mtk_iommu_v1_ops );
416
+ if (ret )
417
+ return ret ;
424
418
425
419
if (!dev_iommu_priv_get (dev )) {
426
420
/* Get the m4u device */
You can’t perform that action at this time.
0 commit comments