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 @@ -574,9 +574,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
574
574
struct clk_onecell_data * clk_data ;
575
575
void __iomem * base ;
576
576
struct device_node * node = pdev -> dev .of_node ;
577
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
578
577
579
- base = devm_ioremap_resource ( & pdev -> dev , res );
578
+ base = devm_platform_ioremap_resource ( pdev , 0 );
580
579
if (IS_ERR (base ))
581
580
return PTR_ERR (base );
582
581
@@ -626,9 +625,8 @@ static int mtk_pericfg_init(struct platform_device *pdev)
626
625
void __iomem * base ;
627
626
int r ;
628
627
struct device_node * node = pdev -> dev .of_node ;
629
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
630
628
631
- base = devm_ioremap_resource ( & pdev -> dev , res );
629
+ base = devm_platform_ioremap_resource ( pdev , 0 );
632
630
if (IS_ERR (base ))
633
631
return PTR_ERR (base );
634
632
You can’t perform that action at this time.
0 commit comments