- thermal->cru = syscon_regmap_lookup_by_phandle(np, "rockchip,cru");
- if (IS_ERR(thermal->cru)) {
- dev_err(&pdev->dev, "couldn't find cru regmap\n");
- return PTR_ERR(thermal->cru);
- }
-
- thermal->pmu = syscon_regmap_lookup_by_phandle(np, "rockchip,pmu");
- if (IS_ERR(thermal->pmu)) {
- dev_err(&pdev->dev, "couldn't find pmu regmap\n");
- return PTR_ERR(thermal->pmu);
- }
-
- thermal->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
- if (IS_ERR(thermal->grf)) {
- dev_err(&pdev->dev, "couldn't find grf regmap\n");
- return PTR_ERR(thermal->grf);
- }
-