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 @@ -1306,9 +1306,8 @@ static int clk_mt2712_top_probe(struct platform_device *pdev)
1306
1306
int r , i ;
1307
1307
struct device_node * node = pdev -> dev .of_node ;
1308
1308
void __iomem * base ;
1309
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
1310
1309
1311
- base = devm_ioremap_resource ( & pdev -> dev , res );
1310
+ base = devm_platform_ioremap_resource ( pdev , 0 );
1312
1311
if (IS_ERR (base )) {
1313
1312
pr_err ("%s(): ioremap failed\n" , __func__ );
1314
1313
return PTR_ERR (base );
@@ -1394,9 +1393,8 @@ static int clk_mt2712_mcu_probe(struct platform_device *pdev)
1394
1393
int r ;
1395
1394
struct device_node * node = pdev -> dev .of_node ;
1396
1395
void __iomem * base ;
1397
- struct resource * res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
1398
1396
1399
- base = devm_ioremap_resource ( & pdev -> dev , res );
1397
+ base = devm_platform_ioremap_resource ( pdev , 0 );
1400
1398
if (IS_ERR (base )) {
1401
1399
pr_err ("%s(): ioremap failed\n" , __func__ );
1402
1400
return PTR_ERR (base );
You can’t perform that action at this time.
0 commit comments