mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
regulator: pf1550: Remove redundant regmap assignment
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user