Re: [PATCH v8 05/10] pmdomain: samsung: convert to using regmap

Krzysztof Kozlowski
2026-03-21T13:16:29Z

On Wed, 18 Mar 2026 15:27:50 +0000, André Draszik <andre.draszik@linaro.org> wrote:
> diff --git a/drivers/pmdomain/samsung/exynos-pm-domains.c b/drivers/pmdomain/samsung/exynos-pm-domains.c
> index 5c3aa8983087..68b1e7ba8729 100644
> --- a/drivers/pmdomain/samsung/exynos-pm-domains.c
> +++ b/drivers/pmdomain/samsung/exynos-pm-domains.c
> @@ -120,9 +140,26 @@ static int exynos_pd_probe(struct platform_device *pdev)
> [ ... skip 20 lines ... ]
> +
> + reg_config.max_register = resource_size(res) - reg_config.reg_stride;
> + pd->regmap = devm_regmap_init_mmio(dev, base, &reg_config);
> + if (IS_ERR(pd->regmap))
> + return dev_err_probe(dev, PTR_ERR(base),
> + "failed to init regmap\n");

PTR_ERR(pd->regmap)

--
Krzysztof Kozlowski <krzk@kernel.org>