]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
regulator: pf1550: Remove redundant regmap assignment
authorFelix Gu <ustc.gu@gmail.com>
Thu, 12 Mar 2026 14:30:31 +0000 (22:30 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Mar 2026 16:31:57 +0000 (16:31 +0000)
The config.regmap is already correctly initialized using dev_get_regmap()
on the parent device. Remove the redundant second assignment that was
overwriting it with pf1550->regmap.

Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260312-1550-v1-1-5a84b886ccfe@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pf1550-regulator.c

index 037b8ec940660b1545cdca4d86fe4f9f1b555477..1d17265284604ae953a17fdfa15a327d1c55dcc6 100644 (file)
@@ -360,7 +360,6 @@ static int pf1550_regulator_probe(struct platform_device *pdev)
                                     "failed to get parent regmap\n");
 
        config.dev = pf1550->dev;
-       config.regmap = pf1550->regmap;
        info->dev = &pdev->dev;
        info->pf1550 = pf1550;