File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1007,7 +1007,6 @@ static int mtk_dpi_probe(struct platform_device *pdev)
1007
1007
{
1008
1008
struct device * dev = & pdev -> dev ;
1009
1009
struct mtk_dpi * dpi ;
1010
- struct resource * mem ;
1011
1010
int ret ;
1012
1011
1013
1012
dpi = devm_kzalloc (dev , sizeof (* dpi ), GFP_KERNEL );
@@ -1038,8 +1037,7 @@ static int mtk_dpi_probe(struct platform_device *pdev)
1038
1037
dev_dbg (& pdev -> dev , "Cannot find pinctrl active!\n" );
1039
1038
}
1040
1039
}
1041
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
1042
- dpi -> regs = devm_ioremap_resource (dev , mem );
1040
+ dpi -> regs = devm_platform_ioremap_resource (pdev , 0 );
1043
1041
if (IS_ERR (dpi -> regs ))
1044
1042
return dev_err_probe (dev , PTR_ERR (dpi -> regs ),
1045
1043
"Failed to ioremap mem resource\n" );
You can’t perform that action at this time.
0 commit comments