summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-04-07 14:14:05 +0200
committerMark Brown <broonie@kernel.org>2026-04-10 13:56:21 +0100
commit606c780b8843731c78c0f6fa0a1c3b99456ca263 (patch)
tree65813fc987e1746c3f52b5198237d9c2cbc35863 /drivers
parentde76a763805d0051242b3862823b34d894ec81f9 (diff)
regulator: max77620: drop redundant OF node initialisation
The platform device OF node is set unconditionally since commit 6f55c5dd1118 ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/regulator/max77620-regulator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/max77620-regulator.c b/drivers/regulator/max77620-regulator.c
index 7bc87d8e9f68..57c54472ec5b 100644
--- a/drivers/regulator/max77620-regulator.c
+++ b/drivers/regulator/max77620-regulator.c
@@ -793,8 +793,6 @@ static int max77620_regulator_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pmic);
pmic->dev = dev;
pmic->rmap = max77620_chip->rmap;
- if (!dev->of_node)
- dev->of_node = pdev->dev.parent->of_node;
switch (max77620_chip->chip_id) {
case MAX77620: