mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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: 647e57351f ("regulator: rk808: reduce 'struct rk808' usage")
Cc: [email protected] # 6.2
Reviewed-by: Sebastian Reichel <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
1 parent
7ea07bc030
commit
65290b24d8
1 file changed
+1
-2
@@ -2114,8 +2114,7 @@ static int rk808_regulator_probe(struct platform_device *pdev)
|
||||
struct regmap *regmap;
|
||||
int ret, i, nregulators;
|
||||
|
||||
pdev->dev.of_node = pdev->dev.parent->of_node;
|
||||
pdev->dev.of_node_reused = true;
|
||||
device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent);
|
||||
|
||||
regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
||||
if (!regmap)
|
||||
|
||||
Reference in new issue
Block a user