Skip to content

Commit 82a917c

Browse files
committed
Merge remote-tracking branches 'regulator/fix/resume' and 'regulator/fix/stm32-vfrefbuf' into regulator-linus
3 parents 661e50b + 35b5f14 + f63248f commit 82a917c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/regulator/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4310,7 +4310,7 @@ static int _regulator_resume_early(struct device *dev, void *data)
43104310

43114311
rstate = regulator_get_suspend_state(rdev, *state);
43124312
if (rstate == NULL)
4313-
return -EINVAL;
4313+
return 0;
43144314

43154315
mutex_lock(&rdev->mutex);
43164316

drivers/regulator/stm32-vrefbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int stm32_vrefbuf_enable(struct regulator_dev *rdev)
5151
* arbitrary timeout.
5252
*/
5353
ret = readl_poll_timeout(priv->base + STM32_VREFBUF_CSR, val,
54-
!(val & STM32_VRR), 650, 10000);
54+
val & STM32_VRR, 650, 10000);
5555
if (ret) {
5656
dev_err(&rdev->dev, "stm32 vrefbuf timed out!\n");
5757
val = readl_relaxed(priv->base + STM32_VREFBUF_CSR);

0 commit comments

Comments
 (0)