[PATCH 8/9] regulator: rk8xx: Fix incorrect parameter
Simon Glass
sjg at chromium.org
Wed Jun 5 05:25:20 CEST 2024
A recent change introduced a bug whereby a PMIC device is used in
place of the regulator device. Fix it.
This fixes a hang after 'Loading Environment from nowhere... OK'
on chromebook_jerry
Fixes: f047e4ab976 ("regulator: rk8xx: add indirection level for some..")
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/power/regulator/rk8xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c
index 1bd4605d43a..bffc5d2dd65 100644
--- a/drivers/power/regulator/rk8xx.c
+++ b/drivers/power/regulator/rk8xx.c
@@ -1240,7 +1240,7 @@ static int ldo_set_suspend_value(struct udevice *dev, int uvolt)
int ldo = dev->driver_data - 1;
const struct rk8xx_reg_info *info = get_ldo_reg(dev->parent, ldo, uvolt);
- return _ldo_set_suspend_value(dev->parent, info, uvolt);
+ return _ldo_set_suspend_value(dev, info, uvolt);
}
static int nldo_set_suspend_value(struct udevice *dev, int uvolt)
--
2.34.1
More information about the U-Boot
mailing list