File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -614,9 +614,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
614
614
struct clk_onecell_data * clk_data ;
615
615
void __iomem * base ;
616
616
struct device_node * node = pdev -> dev .of_node ;
617
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
618
617
619
- base = devm_ioremap_resource ( & pdev -> dev , res );
618
+ base = devm_platform_ioremap_resource ( pdev , 0 );
620
619
if (IS_ERR (base ))
621
620
return PTR_ERR (base );
622
621
@@ -695,9 +694,8 @@ static int mtk_pericfg_init(struct platform_device *pdev)
695
694
void __iomem * base ;
696
695
int r ;
697
696
struct device_node * node = pdev -> dev .of_node ;
698
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
699
697
700
- base = devm_ioremap_resource ( & pdev -> dev , res );
698
+ base = devm_platform_ioremap_resource ( pdev , 0 );
701
699
if (IS_ERR (base ))
702
700
return PTR_ERR (base );
703
701
You can’t perform that action at this time.
0 commit comments