File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
drivers/iommu/arm/arm-smmu Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,6 @@ static int qcom_iommu_ctx_probe(struct platform_device *pdev)
633
633
struct qcom_iommu_ctx * ctx ;
634
634
struct device * dev = & pdev -> dev ;
635
635
struct qcom_iommu_dev * qcom_iommu = dev_get_drvdata (dev -> parent );
636
- struct resource * res ;
637
636
int ret , irq ;
638
637
639
638
ctx = devm_kzalloc (dev , sizeof (* ctx ), GFP_KERNEL );
@@ -643,14 +642,13 @@ static int qcom_iommu_ctx_probe(struct platform_device *pdev)
643
642
ctx -> dev = dev ;
644
643
platform_set_drvdata (pdev , ctx );
645
644
646
- res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
647
- ctx -> base = devm_ioremap_resource (dev , res );
645
+ ctx -> base = devm_platform_ioremap_resource (pdev , 0 );
648
646
if (IS_ERR (ctx -> base ))
649
647
return PTR_ERR (ctx -> base );
650
648
651
649
irq = platform_get_irq (pdev , 0 );
652
650
if (irq < 0 )
653
- return - ENODEV ;
651
+ return irq ;
654
652
655
653
/* clear IRQs before registering fault handler, just in case the
656
654
* boot-loader left us a surprise:
You can’t perform that action at this time.
0 commit comments