mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
regulator: max77620: drop redundant OF node initialisation
The platform device OF node is set unconditionally since commit
6f55c5dd11 ("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>
This commit is contained in:
parent
de76a76380
commit
606c780b88
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user