Skip to content

Commit 606c780

Browse files
jhovoldbroonie
authored andcommitted
regulator: max77620: drop redundant OF node initialisation
The platform device OF node is set unconditionally since commit 6f55c5d ("regulator: max77620: Use device_set_of_node_from_dev()") so drop the earlier redundant conditional initialisation. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260407121405.2663004-1-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent de76a76 commit 606c780

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/regulator/max77620-regulator.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,6 @@ static int max77620_regulator_probe(struct platform_device *pdev)
793793
platform_set_drvdata(pdev, pmic);
794794
pmic->dev = dev;
795795
pmic->rmap = max77620_chip->rmap;
796-
if (!dev->of_node)
797-
dev->of_node = pdev->dev.parent->of_node;
798796

799797
switch (max77620_chip->chip_id) {
800798
case MAX77620:

0 commit comments

Comments
 (0)