Skip to content

Commit 65290b2

Browse files
jhovoldbroonie
authored andcommitted
regulator: rk808: fix OF node reference imbalance
The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: 647e573 ("regulator: rk808: reduce 'struct rk808' usage") Cc: stable@vger.kernel.org # 6.2 Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260408073055.5183-3-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7ea07bc commit 65290b2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/regulator/rk808-regulator.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,8 +2114,7 @@ static int rk808_regulator_probe(struct platform_device *pdev)
21142114
struct regmap *regmap;
21152115
int ret, i, nregulators;
21162116

2117-
pdev->dev.of_node = pdev->dev.parent->of_node;
2118-
pdev->dev.of_node_reused = true;
2117+
device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent);
21192118

21202119
regmap = dev_get_regmap(pdev->dev.parent, NULL);
21212120
if (!regmap)

0 commit comments

Comments
 (0)