File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -1028,12 +1028,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
1028
1028
return - ENODEV ;
1029
1029
}
1030
1030
1031
- auxadc_base = devm_of_iomap (& pdev -> dev , auxadc , 0 , NULL );
1032
- if (IS_ERR (auxadc_base )) {
1033
- of_node_put (auxadc );
1034
- return PTR_ERR (auxadc_base );
1035
- }
1036
-
1031
+ auxadc_base = of_iomap (auxadc , 0 );
1037
1032
auxadc_phys_base = of_get_phys_base (auxadc );
1038
1033
1039
1034
of_node_put (auxadc );
@@ -1049,12 +1044,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
1049
1044
return - ENODEV ;
1050
1045
}
1051
1046
1052
- apmixed_base = devm_of_iomap (& pdev -> dev , apmixedsys , 0 , NULL );
1053
- if (IS_ERR (apmixed_base )) {
1054
- of_node_put (apmixedsys );
1055
- return PTR_ERR (apmixed_base );
1056
- }
1057
-
1047
+ apmixed_base = of_iomap (apmixedsys , 0 );
1058
1048
apmixed_phys_base = of_get_phys_base (apmixedsys );
1059
1049
1060
1050
of_node_put (apmixedsys );
You can’t perform that action at this time.
0 commit comments