File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -910,7 +910,6 @@ static int davinci_pll_probe(struct platform_device *pdev)
910
910
struct davinci_pll_platform_data * pdata ;
911
911
const struct of_device_id * of_id ;
912
912
davinci_pll_init pll_init = NULL ;
913
- struct resource * res ;
914
913
void __iomem * base ;
915
914
916
915
of_id = of_match_device (davinci_pll_of_match , dev );
@@ -930,8 +929,7 @@ static int davinci_pll_probe(struct platform_device *pdev)
930
929
return - EINVAL ;
931
930
}
932
931
933
- res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
934
- base = devm_ioremap_resource (dev , res );
932
+ base = devm_platform_ioremap_resource (pdev , 0 );
935
933
if (IS_ERR (base ))
936
934
return PTR_ERR (base );
937
935
Original file line number Diff line number Diff line change @@ -531,7 +531,6 @@ static int davinci_psc_probe(struct platform_device *pdev)
531
531
struct device * dev = & pdev -> dev ;
532
532
const struct of_device_id * of_id ;
533
533
const struct davinci_psc_init_data * init_data = NULL ;
534
- struct resource * res ;
535
534
void __iomem * base ;
536
535
int ret ;
537
536
@@ -546,8 +545,7 @@ static int davinci_psc_probe(struct platform_device *pdev)
546
545
return - EINVAL ;
547
546
}
548
547
549
- res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
550
- base = devm_ioremap_resource (dev , res );
548
+ base = devm_platform_ioremap_resource (pdev , 0 );
551
549
if (IS_ERR (base ))
552
550
return PTR_ERR (base );
553
551
You can’t perform that action at this time.
0 commit comments