Skip to content

Commit 0a023cb

Browse files
committed
Merge tag 'regulator-fix-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "Two core fixes here, one for a long standing race which some Qualcomm systems have started triggering with their UFS driver and another fixing a problem with supply lookup introduced by the fixes for devm related use after free issues that were introduced in this merge window" * tag 'regulator-fix-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: core: fix deadlock on regulator enable regulator: core: Fix resolve supply lookup issue
2 parents 2c91ce9 + cb3543c commit 0a023cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ static int drms_uA_update(struct regulator_dev *rdev)
10021002
/* get input voltage */
10031003
input_uV = 0;
10041004
if (rdev->supply)
1005-
input_uV = regulator_get_voltage(rdev->supply);
1005+
input_uV = regulator_get_voltage_rdev(rdev->supply->rdev);
10061006
if (input_uV <= 0)
10071007
input_uV = rdev->constraints->input_uV;
10081008

@@ -5540,7 +5540,7 @@ regulator_register(struct device *dev,
55405540

55415541
/* register with sysfs */
55425542
rdev->dev.class = &regulator_class;
5543-
rdev->dev.parent = dev;
5543+
rdev->dev.parent = config->dev;
55445544
dev_set_name(&rdev->dev, "regulator.%lu",
55455545
(unsigned long) atomic_inc_return(&regulator_no));
55465546
dev_set_drvdata(&rdev->dev, rdev);

0 commit comments

Comments
 (0)