* [PATCH] regulator: max77620: drop redundant OF node initialisation
@ 2026-04-07 12:14 Johan Hovold
0 siblings, 0 replies; only message in thread
From: Johan Hovold @ 2026-04-07 12:14 UTC (permalink / raw)
To: Mark Brown; +Cc: Liam Girdwood, linux-kernel, Johan Hovold
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>
---
drivers/regulator/max77620-regulator.c | 2 --
1 file changed, 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:
--
2.52.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-07 12:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 12:14 [PATCH] regulator: max77620: drop redundant OF node initialisation Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox